worker-parrot-party
Version:
Parrot party for everyone
25 lines • 695 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.NoIdleParrotError = exports.CustomErrors = void 0;
/* eslint-disable max-classes-per-file */
class CustomErrors extends Error {
constructor(_message, _type) {
super(_message);
this._message = _message;
this._type = _type;
}
get type() {
return this._type;
}
get message() {
return this._message;
}
}
exports.CustomErrors = CustomErrors;
class NoIdleParrotError extends CustomErrors {
constructor(msg) {
super(msg, 'NO_IDLE_PARROT_ERROR');
}
}
exports.NoIdleParrotError = NoIdleParrotError;
//# sourceMappingURL=CustomErrors.js.map