class
SQL.SQLiteError
class SQLiteError
- readonly byteOffset?: number
The UTF-8 byte offset of the token that the error refers to, counted from the start of the query text.
-1if the error refers to no token. Not set on errors that Bun raises itself. - readonly code: string
SQLite's extended result code, such as
"SQLITE_CONSTRAINT_UNIQUE", or one of Bun's own codes, such as"ERR_SQLITE_CONNECTION_CLOSED" - readonly errno: number
The number of the extended result code, such as
2067.errno & 0xffis the primary code.0on errors that Bun raises itself. - static stackTraceLimit: number
The
Error.stackTraceLimitproperty specifies the number of stack frames collected by a stack trace (whether generated bynew Error().stackorError.captureStackTrace(obj)).The default value is
10but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed.If set to a non-number value, or set to a negative number, stack traces will not capture any frames.
- targetObject: object,constructorOpt?: Function): void;
Create .stack property on a target object