Skip to content

DatabaseError

DatabaseError: DatabaseErrorConstructor

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

The DatabaseError class is used to represent errors that occur during database operations. It extends the built-in Error class and has a machine readable error code string property.

The lowlevel API will throw DatabaseError instances for all database-related errors. Invalid function arguments will throw TypeError.