delayed-error.js 430 B

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