API reference › @evolu/sqlite-wasm › SqliteError

Defined in: packages/sqlite-wasm/src/Database.ts:474

An error SQLite reported.

Extends

Properties

cause

readonly cause:
  | SqliteFailure
  | null;

Defined in: packages/sqlite-wasm/src/Database.ts:500

The first failure below SQLite since the top-level operation started, such as the QuotaExceededError behind SQLITE_FULL, or a page that failed to authenticate; null when neither the pool nor the codec recorded one. When both did, the pool's, because a failed pool call fails the codec's call without the codec recording anything.


extendedCode

readonly extendedCode: SqliteResultCode;

Defined in: packages/sqlite-wasm/src/Database.ts:480

The extended result code, whose primary result code sqliteResultCodeToPrimary returns.


message

readonly message: string;

Defined in: packages/sqlite-wasm/src/Database.ts:486

From sqlite3_errmsg, or from sqlite3_errstr of the code when SQLite did not report the failure to the connection, as for an open without a handle, an allocation that failed, or an export whose VFS failed to read a page.


operation

readonly operation: SqliteOperation;

Defined in: packages/sqlite-wasm/src/Database.ts:475


sqlOffset

readonly sqlOffset: number | null;

Defined in: packages/sqlite-wasm/src/Database.ts:492

The byte offset in the UTF-8 SQL where SQLite detected the error, from sqlite3_error_offset for a parser error (SQLITE_ERROR from prepare, exec or step); null for any other error or when the error has no position.


type

readonly type: "SqliteError";

Defined in: packages/common/dist/src/Type.d.ts:9304

Inherited from

Typed.type