mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-20 18:04:19 +01:00
setup dual publish for commonjs/esm modules and properly route browser/node usages to the correct napi binary entrypoint
This commit is contained in:
13
bindings/javascript/sqlite-error.ts
Normal file
13
bindings/javascript/sqlite-error.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user