rate-limit-error.js 589 B

12345678910111213141516171819
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.RateLimitError = exports.RATE_LIMIT_ERROR = void 0;
  4. exports.RATE_LIMIT_ERROR = 'bullmq:rateLimitExceeded';
  5. /**
  6. * RateLimitError
  7. *
  8. * Error to be thrown when queue reaches a rate limit.
  9. *
  10. */
  11. class RateLimitError extends Error {
  12. constructor(message = exports.RATE_LIMIT_ERROR) {
  13. super(message);
  14. this.name = this.constructor.name;
  15. Object.setPrototypeOf(this, new.target.prototype);
  16. }
  17. }
  18. exports.RateLimitError = RateLimitError;
  19. //# sourceMappingURL=rate-limit-error.js.map