NitroSQLite
react-native-nitro-sqliteClasses

SQLiteError

TypeScript

Source files: TypeScript

Error thrown by managed NitroSQLite operations. Native errors are wrapped with this class.

Extends

  • Error

Constructors

Constructor

new SQLiteError(message, options?): SQLiteError

Defined in: SQLiteError.ts:50

Create an error with a message and optional cause.

Parameters

message

string

options?

ErrorOptions

Returns

SQLiteError

Overrides

Error.constructor

Properties

type

readonly type: SQLiteExceptionType | undefined

Defined in: SQLiteError.ts:47

Recognized native category from SQLiteExceptionType, or undefined for JavaScript failures and unrecognized native categories.

Methods

fromError()

static fromError(error): SQLiteError

Defined in: SQLiteError.ts:64

Convert an unknown thrown value to SQLiteError. Existing instances pass through; Error values keep their stack and cause.

Parameters

error

unknown

Value to normalize.

Returns

SQLiteError

A SQLiteError instance.

On this page