[API reference](https://evolu.dev/docs/api-reference) › [@evolu/sqlite-wasm](https://evolu.dev/docs/api-reference/sqlite-wasm) › SqliteError

Defined in: [packages/sqlite-wasm/src/Database.ts:474](https://github.com/evoluhq/evolu/blob/bc4578a260dd15d5bbf94b83765ca05984d194cb/packages/sqlite-wasm/src/Database.ts#L474)

An error SQLite reported.

## Extends

- [`Typed`](https://evolu.dev/docs/api-reference/common/Type/interfaces/Typed)\<`"SqliteError"`\>

## Properties

<a id="cause"></a>

### cause

```ts
readonly cause:
  | SqliteFailure
  | null;
```

Defined in: [packages/sqlite-wasm/src/Database.ts:500](https://github.com/evoluhq/evolu/blob/bc4578a260dd15d5bbf94b83765ca05984d194cb/packages/sqlite-wasm/src/Database.ts#L500)

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.

---

<a id="extendedcode"></a>

### extendedCode

```ts
readonly extendedCode: SqliteResultCode;
```

Defined in: [packages/sqlite-wasm/src/Database.ts:480](https://github.com/evoluhq/evolu/blob/bc4578a260dd15d5bbf94b83765ca05984d194cb/packages/sqlite-wasm/src/Database.ts#L480)

The extended result code, whose primary result code
[sqliteResultCodeToPrimary](https://evolu.dev/docs/api-reference/sqlite-wasm/functions/sqliteResultCodeToPrimary) returns.

---

<a id="message"></a>

### message

```ts
readonly message: string;
```

Defined in: [packages/sqlite-wasm/src/Database.ts:486](https://github.com/evoluhq/evolu/blob/bc4578a260dd15d5bbf94b83765ca05984d194cb/packages/sqlite-wasm/src/Database.ts#L486)

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.

---

<a id="operation"></a>

### operation

```ts
readonly operation: SqliteOperation;
```

Defined in: [packages/sqlite-wasm/src/Database.ts:475](https://github.com/evoluhq/evolu/blob/bc4578a260dd15d5bbf94b83765ca05984d194cb/packages/sqlite-wasm/src/Database.ts#L475)

---

<a id="sqloffset"></a>

### sqlOffset

```ts
readonly sqlOffset: number | null;
```

Defined in: [packages/sqlite-wasm/src/Database.ts:492](https://github.com/evoluhq/evolu/blob/bc4578a260dd15d5bbf94b83765ca05984d194cb/packages/sqlite-wasm/src/Database.ts#L492)

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.

---

<a id="type"></a>

### type

```ts
readonly type: "SqliteError";
```

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

#### Inherited from

[`Typed`](https://evolu.dev/docs/api-reference/common/Type/interfaces/Typed).[`type`](https://evolu.dev/docs/api-reference/common/Type/interfaces/Typed#type)