export class ValidationError extends Error {
    constructor(message, ...failures) {
        super(message);
        this.name = "ValidationError";
        Object.setPrototypeOf(this, new.target.prototype);
        this.failures = [...(failures !== null && failures !== void 0 ? failures : [])];
    }
}
//# sourceMappingURL=validation-error.js.map