UNPKG

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.

15 lines 637 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const StatusCode_1 = require("../../enum/StatusCode"); class ExcepectationFailed extends Error { constructor(message) { message = message || "Request cannot be fulfilled - Cannot understand the Expect header or doesn't support it."; super(message); this.name = "Excepectation Failed"; this.statusCode = StatusCode_1.StatusCode.EXPECTATION_FAILED; this.type = this.name; this.timestamp = +new Date(); } } exports.default = ExcepectationFailed; //# sourceMappingURL=ExcepectationFailed.js.map