SQLiteError

Bun

Symbol

SQLiteError

class SQLiteError

Errors from SQLite have a name SQLiteError.

  • readonly byteOffset: number

    The UTF-8 byte offset of the sqlite3 query that failed, if known

    This corresponds to sqlite3_error_offset.

  • cause?: unknown

    The cause of the error.

  • code?: string

    The name of the SQLite3 error code

    "SQLITE_CONSTRAINT_UNIQUE"
    
  • errno: number

    The SQLite3 extended error code

    This corresponds to sqlite3_extended_errcode.

  • message: string
  • readonly name: 'SQLiteError'
  • stack?: string
  • static prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

    Optional override for formatting stack traces

  • static stackTraceLimit: number

    The maximum number of stack frames to capture.

  • static captureStackTrace(targetObject: object, constructorOpt?: Function): void

    Create .stack property on a target object

  • static isError(value: unknown): value is Error

    Check if a value is an instance of Error

    @param value

    The value to check

    @returns

    True if the value is an instance of Error, false otherwise