Exception: BaseCradle::RateLimitedError
- Defined in:
- lib/basecradle/errors.rb
Overview
rate_limited — too many requests in the window. retry_after is the number of seconds to wait (from the Retry-After header), or nil if the header was absent.
Instance Attribute Summary collapse
-
#retry_after ⇒ Object
readonly
Returns the value of attribute retry_after.
Attributes inherited from Error
#code, #detail, #instance, #problem, #status, #title
Instance Method Summary collapse
-
#initialize(message = nil, retry_after: nil, **kwargs) ⇒ RateLimitedError
constructor
A new instance of RateLimitedError.
Methods inherited from Error
Constructor Details
#initialize(message = nil, retry_after: nil, **kwargs) ⇒ RateLimitedError
Returns a new instance of RateLimitedError.
99 100 101 102 |
# File 'lib/basecradle/errors.rb', line 99 def initialize( = nil, retry_after: nil, **kwargs) super(, **kwargs) @retry_after = retry_after end |
Instance Attribute Details
#retry_after ⇒ Object (readonly)
Returns the value of attribute retry_after.
97 98 99 |
# File 'lib/basecradle/errors.rb', line 97 def retry_after @retry_after end |