mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-12-23 08:21:09 +00:00
13 lines
297 B
TypeScript
13 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);
|
|
}
|
|
}
|