atcheck/lsscanner/new_ubuntu/node_modules/global-agent/dist/errors.js

22 lines
575 B
JavaScript
Raw Normal View History

2019-12-16 18:42:21 +01:00
"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