Skip to content

DatabaseErrorCode

const DatabaseErrorCode: {
NotConnected: "not_connected";
ServerError: "server_error";
RequestTimeout: "request_timeout";
InvalidArgument: "invalid_argument";
UnsupportedEnvironment: "unsupported_environment";
NotFound: "not_found";
NotReady: "databases_not_ready";
InvalidPath: "invalid_database_path";
WriteNotPermitted: "write_not_permitted";
QueryFailed: "query_failed";
};

Defined in: errors.ts:43

Error codes for SQLite database failures. Extends GeneralErrorCode.

readonly NotConnected: "not_connected" = 'not_connected';

The device has no internet connection.

readonly ServerError: "server_error" = 'server_error';

The Mobile Locker server or an upstream API returned an unexpected error.

readonly RequestTimeout: "request_timeout" = 'request_timeout';

The request exceeded the configured timeout.

readonly InvalidArgument: "invalid_argument" = 'invalid_argument';

A caller-supplied argument failed validation.

readonly UnsupportedEnvironment: "unsupported_environment" = 'unsupported_environment';

The method is not supported in the current environment (e.g. iOS-only API in browser).

readonly NotFound: "not_found" = 'not_found';

The requested resource was not found.

readonly NotReady: "databases_not_ready" = 'databases_not_ready';

The databases are still being copied or opened after all retries.

readonly InvalidPath: "invalid_database_path" = 'invalid_database_path';

The requested path is not in the presentation’s allowed file list.

readonly WriteNotPermitted: "write_not_permitted" = 'write_not_permitted';

The SQL statement is not a SELECT — write operations are not permitted.

readonly QueryFailed: "query_failed" = 'query_failed';

The SQL statement failed to execute.