Skip to content

DatabaseError

Defined in: .work/repos/olmdb/src/lowlevel.ts:162

Interface for DatabaseError, which extends the standard Error class. Contains an additional code property for machine-readable error identification.

  • Error

code: string

Defined in: .work/repos/olmdb/src/lowlevel.ts:167

A machine-readable string code identifying the type of error. Example codes include: “NOT_INIT”, “INVALID_TRANSACTION”, “KEY_TOO_LONG”, etc.


optional cause?: unknown

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

Error.cause


name: string

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

Error.name


message: string

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

Error.message


optional stack?: string

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

Error.stack