# UnsupportedFileError

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](unsupportedfileerror.md)*

*Defined in [hyperformula/src/errors.ts:402](https://github.com/handsontable/hyperformula/blob/4ca6c46/hyperformula/src/errors.ts#L402)*

**Parameters:**

Name | Type |
------ | ------ |
`reason` | "empty" &#124; "unparseable" |
`detail?` | undefined &#124; string |

**Returns:** *[UnsupportedFileError](unsupportedfileerror.md)*

## Properties

### message 

• **message**: *string*

___

### name 

• **name**: *string*

___

### reason

• **reason**: *"empty" | "unparseable"*

*Defined in [hyperformula/src/errors.ts:403](https://github.com/handsontable/hyperformula/blob/4ca6c46/hyperformula/src/errors.ts#L403)*

___

### stack

• **stack**? : *undefined | string*

___

### Error

▪ **Error**: *ErrorConstructor*