# InvalidExportFormatError

> For the complete documentation index, see [llms.txt](https://docs.midnight.network/llms.txt)

[**Midnight.js API Reference v4.1.0**](https://docs.midnight.network/api-reference/midnight-js.md)

***

[Midnight.js API Reference](https://docs.midnight.network/api-reference/midnight-js/packages.md) / [@midnight-ntwrk/midnight-js-types](https://docs.midnight.network/api-reference/midnight-js/@midnight-ntwrk/midnight-js-types.md) / InvalidExportFormatError

# Class: InvalidExportFormatError

Error thrown when the export data format is invalid.

## Extends[​](#extends "Direct link to Extends")

* [`PrivateStateImportError`](https://docs.midnight.network/api-reference/midnight-js/@midnight-ntwrk/midnight-js-types/classes/PrivateStateImportError.md)

## Constructors[​](#constructors "Direct link to Constructors")

### Constructor[​](#constructor "Direct link to Constructor")

> **new InvalidExportFormatError**(`message?`): `InvalidExportFormatError`

#### Parameters[​](#parameters "Direct link to Parameters")

##### message?[​](#message "Direct link to message?")

`string` = `'Invalid export format'`

#### Returns[​](#returns "Direct link to Returns")

`InvalidExportFormatError`

#### Overrides[​](#overrides "Direct link to Overrides")

[`PrivateStateImportError`](https://docs.midnight.network/api-reference/midnight-js/@midnight-ntwrk/midnight-js-types/classes/PrivateStateImportError.md).[`constructor`](https://docs.midnight.network/api-reference/midnight-js/@midnight-ntwrk/midnight-js-types/classes/PrivateStateImportError.md#constructor)

## Properties[​](#properties "Direct link to Properties")

### cause?[​](#cause "Direct link to cause?")

> `readonly` `optional` **cause?**: [`PrivateStateImportErrorCause`](https://docs.midnight.network/api-reference/midnight-js/@midnight-ntwrk/midnight-js-types/type-aliases/PrivateStateImportErrorCause.md)

#### Inherited from[​](#inherited-from "Direct link to Inherited from")

[`PrivateStateImportError`](https://docs.midnight.network/api-reference/midnight-js/@midnight-ntwrk/midnight-js-types/classes/PrivateStateImportError.md).[`cause`](https://docs.midnight.network/api-reference/midnight-js/@midnight-ntwrk/midnight-js-types/classes/PrivateStateImportError.md#cause)
