@rightcapital/exceptions
Version:
TypeScript Exception definitions inspired by PHP SPL Exceptions etc...
18 lines • 734 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.UnexpectedValueException = void 0;
const base_exception_1 = require("./base.exception");
/**
* Exception thrown if a value does not match with a set of values.
* Typically this happens when a function calls another function and
* expects the return value to be of a certain type or value not including arithmetic or buffer related errors.
* @public
*/
class UnexpectedValueException extends base_exception_1.BaseException {
constructor() {
super(...arguments);
this.name = 'UnexpectedValueException';
}
}
exports.UnexpectedValueException = UnexpectedValueException;
//# sourceMappingURL=unexpected-value.exception.js.map