UNPKG

nodedb-json

Version:

A lightweight JSON-based database for Node.js with TypeScript support, indexing, and complex query capabilities

17 lines 526 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DatabaseError = void 0; 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 }); } } } exports.DatabaseError = DatabaseError; //# sourceMappingURL=database-error.js.map