rate-limit-error.js 415 B

123456789101112131415
  1. export const RATE_LIMIT_ERROR = 'bullmq:rateLimitExceeded';
  2. /**
  3. * RateLimitError
  4. *
  5. * Error to be thrown when queue reaches a rate limit.
  6. *
  7. */
  8. export class RateLimitError extends Error {
  9. constructor(message = RATE_LIMIT_ERROR) {
  10. super(message);
  11. this.name = this.constructor.name;
  12. Object.setPrototypeOf(this, new.target.prototype);
  13. }
  14. }
  15. //# sourceMappingURL=rate-limit-error.js.map