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) • 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;
;