UNPKG

nodedb-json

Version:

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

8 lines 331 B
import { DatabaseError } from './database-error.js'; export class CorruptedFileError extends DatabaseError { constructor(filePath, cause) { super(`JSON file is corrupted and cannot be recovered: ${filePath}`, { cause }); this.name = 'CorruptedFileError'; } } //# sourceMappingURL=corrupted-file-error.js.map