wkr-util
Version:
Utility library for wkr project.
22 lines (19 loc) • 568 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
function ForbiddenError(code, error) {
this.name = 'ForbiddenError';
this.message = error.message;
Error.call(this, error.message);
Error.captureStackTrace(this, this.constructor);
this.code = code;
this.status = 403;
this.inner = error;
}
ForbiddenError.prototype = Object.create(Error.prototype);
ForbiddenError.prototype.constructor = ForbiddenError;
var _default = ForbiddenError;
exports.default = _default;
module.exports = exports.default;
;