Exception: Blazer::Ai::RateLimiter::RateLimitExceeded

Inherits:
StandardError
  • Object
show all
Defined in:
lib/blazer/ai/rate_limiter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = "Rate limit exceeded", retry_after: 60) ⇒ RateLimitExceeded

Returns a new instance of RateLimitExceeded.



7
8
9
10
# File 'lib/blazer/ai/rate_limiter.rb', line 7

def initialize(message = "Rate limit exceeded", retry_after: 60)
  @retry_after = retry_after
  super(message)
end

Instance Attribute Details

#retry_afterObject (readonly)

Returns the value of attribute retry_after.



5
6
7
# File 'lib/blazer/ai/rate_limiter.rb', line 5

def retry_after
  @retry_after
end