UNPKG

worker-parrot-party

Version:
25 lines 695 B
"use strict"; 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