error-advisor
Version:
NPM module that aim to facilitate the error handling by providing http errors classes and also let you customize business errors as well with handy and clean way.
16 lines • 657 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const StatusCode_1 = require("../../enum/StatusCode");
class InsufficientStorage extends Error {
constructor(message) {
message =
message || "Request cannot be fulfilled - Cannot store the representation needed to complete the request.";
super(message);
this.name = "Insufficient Storage";
this.statusCode = StatusCode_1.StatusCode.INSUFFICIENT_STORAGE;
this.type = this.name;
this.timestamp = +new Date();
}
}
exports.default = InsufficientStorage;
//# sourceMappingURL=InsufficientStorage.js.map