Files
turso/packages/turso-serverless/src/error.ts
Pekka Enberg ced6fba624 serverless: Add DatabasError type
Add an explicit error type so application can actually do error handling...
2025-07-24 16:10:18 +03:00

7 lines
192 B
TypeScript

export class DatabaseError extends Error {
constructor(message: string) {
super(message);
this.name = 'DatabaseError';
Object.setPrototypeOf(this, DatabaseError.prototype);
}
}