bun-sqlite-orm
Version:
A lightweight TypeScript ORM for Bun runtime with Bun SQLite, featuring Active Record pattern and decorator-based entities
21 lines (18 loc) • 585 B
text/typescript
import { BunSqliteOrmError } from './bun-sqlite-orm-error';
export class TypeConversionError extends BunSqliteOrmError {
public readonly propertyName: string;
public readonly expectedType: string;
public readonly actualValue: unknown;
constructor(
message: string,
propertyName: string,
expectedType: string,
actualValue: unknown,
entityName?: string
) {
super(message, entityName);
this.propertyName = propertyName;
this.expectedType = expectedType;
this.actualValue = actualValue;
}
}