waiting-children-error.js 688 B

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