mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-18 17:14:20 +01:00
14 lines
297 B
TypeScript
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);
|
|
}
|
|
}
|