InvalidSheetNameError(sheet)
Source¶
Bases: NumdaplotError
Raised when Excel would refuse the sheet name of ExcelReadOptions or ExcelWriteOptions.
The name is empty, longer than 31 characters, or holds [ ] : * ? / \.
Added in version 0.1.0
Parameters:
-
sheet(str)The rejected sheet name.
Attributes:
-
sheetThe rejected sheet name.
Examples:
import numdaplot as ndp
try:
ndp.ExcelWriteOptions(sheet="Sales/2026")
except ndp.InvalidSheetNameError as error:
print(error)
# Expected a sheet name of 1 to 31 characters without [ ] : * ? / \, got 'Sales/2026'.