Files
turso/bindings/javascript/packages/common/sqlite-error.ts
2025-09-09 14:26:21 +04:00

14 lines
297 B
TypeScript

export class SqliteError extends Error {
name: string;
code: string;
rawCode: string;
constructor(message, code, rawCode) {
super(message);
this.name = 'SqliteError';
this.code = code;
this.rawCode = rawCode;
(Error as any).captureStackTrace(this, SqliteError);
}
}