NitroSQLite

NitroSQLiteError

API Reference


API Reference / react-native-nitro-sqlite / NitroSQLiteError

Class: NitroSQLiteError

Custom error class for NitroSQLite operations Extends the native Error class with proper prototype chain and error handling

Extends

  • Error

Constructors

Constructor

new NitroSQLiteError(message, options?): NitroSQLiteError

Parameters

message

string

options?

ErrorOptions

Returns

NitroSQLiteError

Overrides

Error.constructor

Methods

fromError()

static fromError(error): NitroSQLiteError

Converts an unknown error to a NitroSQLiteError Preserves stack traces and error causes when available

Parameters

error

unknown

Returns

NitroSQLiteError