unrecoverable-error.js 469 B

12345678910111213141516
  1. export const UNRECOVERABLE_ERROR = 'bullmq:unrecoverable';
  2. /**
  3. * UnrecoverableError
  4. *
  5. * Error to move a job to failed even if the attemptsMade
  6. * are lower than the expected limit.
  7. *
  8. */
  9. export class UnrecoverableError extends Error {
  10. constructor(message = UNRECOVERABLE_ERROR) {
  11. super(message);
  12. this.name = this.constructor.name;
  13. Object.setPrototypeOf(this, new.target.prototype);
  14. }
  15. }
  16. //# sourceMappingURL=unrecoverable-error.js.map