NitroSQLite
react-native-nitro-sqliteClasses

NitroSQLiteError

TypeScript

Source files: TypeScript

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

Extends

  • Error

Constructors

Constructor

new NitroSQLiteError(message, options?): NitroSQLiteError

Defined in: NitroSQLiteError.ts:52

Create an error with a message and optional cause or explicit category.

Parameters

message

string

options?

ErrorOptions & object

Returns

NitroSQLiteError

Overrides

Error.constructor

Properties

type

readonly type: NitroSQLiteExceptionType | undefined

Defined in: NitroSQLiteError.ts:49

Category from NitroSQLiteExceptionType, or undefined when the failure has no recognized category.

Methods

fromError()

static fromError(error): NitroSQLiteError

Defined in: NitroSQLiteError.ts:69

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

Parameters

error

unknown

Value to normalize.

Returns

NitroSQLiteError

A NitroSQLiteError instance.

On this page