@varasto/validator-storage
Version:
Varasto storage implementation that performs validation
16 lines (15 loc) • 564 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.UnrecognizedNamespaceError = void 0;
/**
* Exception that is thrown when attempting to access to a namespace that is
* not mapped to an validation schema.
*/
class UnrecognizedNamespaceError extends Error {
constructor(namespace) {
super(`Unrecognized namespace: ${namespace}`);
Object.setPrototypeOf(this, new.target.prototype);
this.name = UnrecognizedNamespaceError.name;
}
}
exports.UnrecognizedNamespaceError = UnrecognizedNamespaceError;