UNPKG

bun-sqlite-orm

Version:

A lightweight TypeScript ORM for Bun runtime with Bun SQLite, featuring Active Record pattern and decorator-based entities

13 lines (10 loc) 478 B
import { BunSqliteOrmError } from './bun-sqlite-orm-error'; export class ConnectionError extends BunSqliteOrmError { public readonly databasePath: string; public readonly connectionType: 'initialization' | 'query' | 'transaction'; constructor(message: string, databasePath: string, connectionType: 'initialization' | 'query' | 'transaction') { super(message); this.databasePath = databasePath; this.connectionType = connectionType; } }