UNPKG

nosqlax

Version:

NoSQLax is a modern, lightweight JavaScript Object Document Mapper(ODM) library that makes working with CouchDB a breeze. Inspired by CouchDB’s “Relax” philosophy and the chill vibes of Snorlax, NoSQLax takes the hassle out of managing your data, offering

16 lines (15 loc) 577 B
"use strict"; 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;