12 lines
249 B
JavaScript
12 lines
249 B
JavaScript
export class PawSQLiteError extends Error {
|
|
static from(err) {
|
|
const p_err = new PawSQLiteError(err.toString());
|
|
p_err.cause = err;
|
|
return p_err;
|
|
}
|
|
|
|
constructor(message) {
|
|
super(message);
|
|
this.name = "PawSQLiteError";
|
|
}
|
|
} |