SQLiteError
TypeScriptSource 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: packages/nitro-sqlite/src/SQLiteError.ts:52
Create an error with a message and optional cause or explicit category.
Parameters
message
string
options?
ErrorOptions & object
Returns
SQLiteError
Overrides
Error.constructor
Properties
type
readonly type: SQLiteExceptionType | undefined
Defined in: packages/nitro-sqlite/src/SQLiteError.ts:49
Category from SQLiteExceptionType, or undefined when
the failure has no recognized category.
Methods
fromError()
static fromError(error): SQLiteError
Defined in: packages/nitro-sqlite/src/SQLiteError.ts:69
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.