Exception: PolyLingo::RateLimitError
- Inherits:
-
PolyLingoError
- Object
- StandardError
- PolyLingoError
- PolyLingo::RateLimitError
- Defined in:
- lib/polylingo/errors.rb
Overview
Rate limited (HTTP 429).
Instance Attribute Summary collapse
-
#retry_after ⇒ Object
readonly
Returns the value of attribute retry_after.
Attributes inherited from PolyLingoError
Instance Method Summary collapse
-
#initialize(status, error, message, retry_after = nil) ⇒ RateLimitError
constructor
A new instance of RateLimitError.
Constructor Details
#initialize(status, error, message, retry_after = nil) ⇒ RateLimitError
Returns a new instance of RateLimitError.
23 24 25 26 |
# File 'lib/polylingo/errors.rb', line 23 def initialize(status, error, , retry_after = nil) super(status, error, ) @retry_after = retry_after end |
Instance Attribute Details
#retry_after ⇒ Object (readonly)
Returns the value of attribute retry_after.
21 22 23 |
# File 'lib/polylingo/errors.rb', line 21 def retry_after @retry_after end |