@dazejs/framework
Version:
Daze.js - A powerful web framework for Node.js
19 lines • 645 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ValidateHttpError = void 0;
const http_error_1 = require("./http-error");
class ValidateHttpError extends http_error_1.HttpError {
constructor(message = 'Validation error', validate) {
super(422, message, {}, validate && validate.errors);
this._validate = validate;
Error.captureStackTrace(this, this.constructor);
}
get validate() {
return this._validate;
}
getValidate() {
return this._validate;
}
}
exports.ValidateHttpError = ValidateHttpError;
//# sourceMappingURL=validate-http-error.js.map