UNPKG

bun-sqlite-orm

Version:

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

17 lines (13 loc) 455 B
export interface ValidationErrorDetail { property: string; message: string; value?: unknown; } import { BunSqliteOrmError } from './bun-sqlite-orm-error'; export class ValidationError extends BunSqliteOrmError { public readonly errors: ValidationErrorDetail[]; constructor(entityName: string, errors: ValidationErrorDetail[]) { super(`Validation failed for ${entityName}`, entityName); this.errors = errors; } }