UNPKG

@neylion/exceptions

Version:

Exceptions commonly used within ney projects

14 lines (13 loc) 536 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const Exception_1 = require("./Exception"); class ServiceContractException extends Exception_1.Exception { constructor(message, innerException) { super(message, innerException); this.name = "ServiceContractException"; this.statusCode = 400; this.type = "serviceContract"; this.typeDescription = "Request data is faulty in one way or the other."; } } exports.ServiceContractException = ServiceContractException;