nosqlax
Version:
NoSQLax is a lightweight JavaScript library designed to simplify and streamline CRUD operations with CouchDB. NoSQLax provides a unified and intuitive repository pattern to handle your data effortlessly.
16 lines (15 loc) • 577 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.DocumentNotFoundError = void 0;
class DocumentNotFoundError extends Error {
constructor(selector) {
super(`Document not found for the given criteria`);
this.name = 'DocumentNotFindError';
this.selector = selector;
// Ensures the stack trace is correctly preserved in V8 engines
if (Error.captureStackTrace) {
Error.captureStackTrace(this, DocumentNotFoundError);
}
}
}
exports.DocumentNotFoundError = DocumentNotFoundError;
;