Exception: AzureSearch::Errors::RetriableHttpError
- Inherits:
-
StandardError
- Object
- StandardError
- AzureSearch::Errors::RetriableHttpError
- Defined in:
- lib/azure_search/errors.rb
Overview
Raised to indicate that a HTTP request needs to be retried.
Instance Attribute Summary collapse
-
#code ⇒ Symbol
The response status code.
-
#message ⇒ Symbol
The error message.
Instance Method Summary collapse
-
#initialize(code, message) ⇒ RetriableHttpError
constructor
A new instance of RetriableHttpError.
- #to_s ⇒ Object
Constructor Details
#initialize(code, message) ⇒ RetriableHttpError
Returns a new instance of RetriableHttpError.
15 16 17 18 |
# File 'lib/azure_search/errors.rb', line 15 def initialize(code, ) self.code = code self. = end |
Instance Attribute Details
#code ⇒ Symbol
Returns The response status code.
11 12 13 |
# File 'lib/azure_search/errors.rb', line 11 def code @code end |
#message ⇒ Symbol
Returns The error message.
13 14 15 |
# File 'lib/azure_search/errors.rb', line 13 def @message end |
Instance Method Details
#to_s ⇒ Object
20 21 22 |
# File 'lib/azure_search/errors.rb', line 20 def to_s "RetriableHttpError <#{self.code}>: #{self.}" end |