waiting-error.js 601 B

12345678910111213141516171819
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.WaitingError = exports.WAITING_ERROR = void 0;
  4. exports.WAITING_ERROR = 'bullmq:movedToWait';
  5. /**
  6. * WaitingError
  7. *
  8. * Error to be thrown when job is moved to wait or prioritized state
  9. * from job in active state.
  10. */
  11. class WaitingError extends Error {
  12. constructor(message = exports.WAITING_ERROR) {
  13. super(message);
  14. this.name = this.constructor.name;
  15. Object.setPrototypeOf(this, new.target.prototype);
  16. }
  17. }
  18. exports.WaitingError = WaitingError;
  19. //# sourceMappingURL=waiting-error.js.map