# ExportDecryptionError

> 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) / ExportDecryptionError

# Class: ExportDecryptionError

Error thrown when decryption of export data fails. This could be due to wrong password, corrupted data, or tampered content. The specific cause is intentionally not disclosed to prevent oracle attacks.

## 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 ExportDecryptionError**(): `ExportDecryptionError`

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

`ExportDecryptionError`

#### 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)
