nodedb-json
Version:
A lightweight JSON-based database for Node.js with TypeScript support, indexing, and complex query capabilities
12 lines • 505 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CorruptedFileError = void 0;
const database_error_1 = require("./database-error");
class CorruptedFileError extends database_error_1.DatabaseError {
constructor(filePath, cause) {
super(`JSON file is corrupted and cannot be recovered: ${filePath}`, { cause });
this.name = 'CorruptedFileError';
}
}
exports.CorruptedFileError = CorruptedFileError;
//# sourceMappingURL=corrupted-file-error.js.map