# UnsupportedFileError Class
Error thrown when a file cannot be read as a supported spreadsheet format, e.g. when its byte buffer is empty or cannot be parsed as an .xlsx workbook.
# Constructors
# constructor
+ new UnsupportedFileError(reason: "empty" | "unparseable", detail?: undefined | string): UnsupportedFileError
Defined in hyperformula/src/errors.ts:402 (opens new window)
Parameters:
| Name | Type |
|---|---|
reason | "empty" | "unparseable" |
detail? | undefined | string |
Returns: UnsupportedFileError
# Properties
# message
• message: string
# name
• name: string
# reason Readonly
• reason: "empty" | "unparseable"
Defined in hyperformula/src/errors.ts:403 (opens new window)
# stack Optional
• stack? : undefined | string
# Error Static
▪ Error: ErrorConstructor