NitroSQLiteError
TypeScriptSource 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:50
Create an error with a message and optional cause.
Parameters
message
string
options?
ErrorOptions
Returns
NitroSQLiteError
Overrides
Error.constructor
Properties
type
readonly type: NitroSQLiteExceptionType | undefined
Defined in: NitroSQLiteError.ts:47
Recognized native category from NitroSQLiteExceptionType, or
undefined for JavaScript failures and unrecognized native categories.
Methods
fromError()
static fromError(error): NitroSQLiteError
Defined in: NitroSQLiteError.ts:64
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.