nodedb-json
Version:
A lightweight JSON-based database for Node.js with TypeScript support, indexing, and complex query capabilities
13 lines • 385 B
JavaScript
export class DatabaseError extends Error {
constructor(message, options) {
super(message);
this.name = 'DatabaseError';
if (options && 'cause' in options) {
Object.defineProperty(this, 'cause', {
value: options.cause,
configurable: true
});
}
}
}
//# sourceMappingURL=database-error.js.map