waiting-error.js 436 B

123456789101112131415
  1. export const WAITING_ERROR = 'bullmq:movedToWait';
  2. /**
  3. * WaitingError
  4. *
  5. * Error to be thrown when job is moved to wait or prioritized state
  6. * from job in active state.
  7. */
  8. export class WaitingError extends Error {
  9. constructor(message = WAITING_ERROR) {
  10. super(message);
  11. this.name = this.constructor.name;
  12. Object.setPrototypeOf(this, new.target.prototype);
  13. }
  14. }
  15. //# sourceMappingURL=waiting-error.js.map