Skip to content

WrongPasswordError

Defined in: src/core/crypto/password-error.ts:9

Thrown when the bytes are encrypted and the password does not open them — the wrong one, or none where one is needed.

  • Error

new WrongPasswordError(message?): WrongPasswordError

Defined in: src/core/crypto/password-error.ts:11

string = 'Wrong password for this document'

The message to carry; the default states the failure.

WrongPasswordError

Error.constructor

optional cause?: unknown

Defined in: docs/node_modules/typescript/lib/lib.es2022.error.d.ts:24

Error.cause


message: string

Defined in: docs/node_modules/typescript/lib/lib.es5.d.ts:1075

Error.message


name: string

Defined in: docs/node_modules/typescript/lib/lib.es5.d.ts:1074

Error.name


optional stack?: string

Defined in: docs/node_modules/typescript/lib/lib.es5.d.ts:1076

Error.stack