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) 421 B
import { BunSqliteOrmError } from './bun-sqlite-orm-error'; export class DatabaseError extends BunSqliteOrmError { public readonly originalError: Error; public readonly operation?: string; constructor(message: string, originalError: Error, entityName?: string, operation?: string) { super(message, entityName); this.originalError = originalError; this.operation = operation; } }