Skip to content

MobileLockerDatabaseError

Defined in: errors.ts:115

Thrown by mobilelocker.database.* methods on SQLite failures.

Check code against DatabaseErrorCode constants to distinguish path errors, write attempts, and query failures.

new MobileLockerDatabaseError(
message,
code,
sqliteMessage?): MobileLockerDatabaseError;

Defined in: errors.ts:120

Parameter Type
message string
code DatabaseErrorCode
sqliteMessage? string

MobileLockerDatabaseError

MobileLockerError.constructor

readonly code: DatabaseErrorCode;

Defined in: errors.ts:116

Machine-readable error code. Prefer the *ErrorCode constants for comparisons.

MobileLockerError.code


readonly optional sqliteMessage?: string;

Defined in: errors.ts:118

The raw SQLite error message, if available.