Exception: Hivehook::RateLimitError
- Inherits:
-
APIError
- Object
- StandardError
- HivehookError
- APIError
- Hivehook::RateLimitError
- Defined in:
- lib/hivehook/errors.rb
Instance Attribute Summary collapse
-
#retry_after ⇒ Object
readonly
Returns the value of attribute retry_after.
Attributes inherited from APIError
#extensions, #graphql_code, #status_code
Instance Method Summary collapse
-
#initialize(message, status_code = 429, retry_after: nil, extensions: nil, graphql_code: nil) ⇒ RateLimitError
constructor
A new instance of RateLimitError.
Constructor Details
#initialize(message, status_code = 429, retry_after: nil, extensions: nil, graphql_code: nil) ⇒ RateLimitError
Returns a new instance of RateLimitError.
31 32 33 34 |
# File 'lib/hivehook/errors.rb', line 31 def initialize(, status_code = 429, retry_after: nil, extensions: nil, graphql_code: nil) super(, status_code, extensions: extensions, graphql_code: graphql_code) @retry_after = retry_after end |
Instance Attribute Details
#retry_after ⇒ Object (readonly)
Returns the value of attribute retry_after.
29 30 31 |
# File 'lib/hivehook/errors.rb', line 29 def retry_after @retry_after end |