# XlsxError

Source: /xlsx-format/api-reference/classes/xlsxerror

Error subclass thrown by xlsx-format for deterministic failure handling.

```ts
class XlsxError extends Error
```

## Properties

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| ` name ` | ` string ` | Yes |  |
| ` message ` | ` string ` | Yes |  |
| ` stack ` | ` string ` | No |  |
| ` cause ` | ` unknown ` | No |  |
| ` code ` | [` XlsxErrorCode `](</xlsx-format/api-reference/types/xlsxerrorcode/>) | Yes | Readonly. |

## constructor

```ts
constructor(code: XlsxErrorCode, message: string, options?: ErrorOptions)
```

### Parameters

| Name | Type | Required |
| --- | --- | --- |
| ` code ` | [` XlsxErrorCode `](</xlsx-format/api-reference/types/xlsxerrorcode/>) | Yes |
| ` message ` | ` string ` | Yes |
| ` options ` | ` ErrorOptions ` | No |
