@dazejs/framework
Version:
Daze.js - A powerful web framework for Node.js
17 lines • 506 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.HttpError = void 0;
class HttpError extends Error {
constructor(code = 500, message = '', headers = {}, errors = []) {
super(message);
this.code = code;
this.headers = headers;
this.errors = errors;
Error.captureStackTrace(this, this.constructor);
}
getErrors() {
return this.errors;
}
}
exports.HttpError = HttpError;
//# sourceMappingURL=http-error.js.map