@neylion/exceptions
Version:
Exceptions commonly used within ney projects
14 lines (13 loc) • 525 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const Exception_1 = require("./Exception");
class ResourceException extends Exception_1.Exception {
constructor(message, innerException) {
super(message, innerException);
this.name = "ResourceException";
this.statusCode = 500;
this.type = "resource";
this.typeDescription = "A request to an external resource returned an error or unexpected data.";
}
}
exports.ResourceException = ResourceException;