CityBEM-CityLayers-SaeedRay.../node_modules/global-agent/dist/errors.js

22 lines
575 B
JavaScript
Raw Normal View History

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.UnexpectedStateError = void 0;
var _es6Error = _interopRequireDefault(require("es6-error"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
/* eslint-disable fp/no-class, fp/no-this */
class UnexpectedStateError extends _es6Error.default {
constructor(message, code = 'UNEXPECTED_STATE_ERROR') {
super(message);
this.code = code;
}
}
exports.UnexpectedStateError = UnexpectedStateError;
//# sourceMappingURL=errors.js.map