unrecoverable-error.js 658 B

1234567891011121314151617181920
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.UnrecoverableError = exports.UNRECOVERABLE_ERROR = void 0;
  4. exports.UNRECOVERABLE_ERROR = 'bullmq:unrecoverable';
  5. /**
  6. * UnrecoverableError
  7. *
  8. * Error to move a job to failed even if the attemptsMade
  9. * are lower than the expected limit.
  10. *
  11. */
  12. class UnrecoverableError extends Error {
  13. constructor(message = exports.UNRECOVERABLE_ERROR) {
  14. super(message);
  15. this.name = this.constructor.name;
  16. Object.setPrototypeOf(this, new.target.prototype);
  17. }
  18. }
  19. exports.UnrecoverableError = UnrecoverableError;
  20. //# sourceMappingURL=unrecoverable-error.js.map