Exception: ApiEntreprise::Commons::RateLimitError
- Inherits:
-
ClientError
- Object
- StandardError
- Error
- ClientError
- ApiEntreprise::Commons::RateLimitError
- Defined in:
- lib/api_entreprise/commons/errors.rb
Instance Attribute Summary collapse
-
#retry_after ⇒ Object
readonly
Returns the value of attribute retry_after.
Attributes inherited from Error
#errors, #http_status, #method, #url
Instance Method Summary collapse
-
#initialize(message = nil, retry_after: nil, **kwargs) ⇒ RateLimitError
constructor
A new instance of RateLimitError.
Methods inherited from Error
#first_error, #first_error_code, #first_error_detail, #first_error_meta, #first_error_source, #first_error_title
Constructor Details
#initialize(message = nil, retry_after: nil, **kwargs) ⇒ RateLimitError
Returns a new instance of RateLimitError.
62 63 64 65 |
# File 'lib/api_entreprise/commons/errors.rb', line 62 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.
60 61 62 |
# File 'lib/api_entreprise/commons/errors.rb', line 60 def retry_after @retry_after end |