UNPKG

@neylion/exceptions

Version:

Exceptions commonly used within ney projects

16 lines (15 loc) 576 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const Exception_1 = require("./Exception"); class TimeoutException extends Exception_1.Exception { constructor(message, timeoutConfig, innerException) { super(message, innerException); this.name = "TimeoutException"; this.timeoutConfig = timeoutConfig; this.statusCode = 500; this.type = "timeout"; this.typeDescription = "A call to underlying system timed out."; delete this.location; } } exports.TimeoutException = TimeoutException;