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) • 527 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ValidationError = void 0;
class ValidationError extends Error {
constructor(details) {
super(`Validation failed: ${details}`);
this.name = 'ValidationError';
this.details = details;
// Ensures the stack trace is correctly preserved in V8 engines
if (Error.captureStackTrace) {
Error.captureStackTrace(this, ValidationError);
}
}
}
exports.ValidationError = ValidationError;