Exception: RightSupport::Net::NoResult
- Defined in:
- lib/right_support/net/request_balancer.rb
Overview
Raised to indicate the (uncommon) error condition where a RequestBalancer rotated through EVERY URL in a list without getting a non-nil, non-timeout response.
If the NoResult was due to a series of errors, then the #details attribute of this exception will let you access detailed information about the errors encountered while retrying the network request. #details is a Hash, the keys of which are endpoints, and the values of which are arrays of exceptions that we encountered while making requests to that endpoint.
Instance Attribute Summary collapse
-
#details ⇒ Hash
readonly
A map of => [exception_1, exception2, …], ….
Instance Method Summary collapse
-
#initialize(message, details = {}) ⇒ NoResult
constructor
A new instance of NoResult.
Constructor Details
#initialize(message, details = {}) ⇒ NoResult
Returns a new instance of NoResult.
38 39 40 41 |
# File 'lib/right_support/net/request_balancer.rb', line 38 def initialize(, details={}) super() @details = details end |
Instance Attribute Details
#details ⇒ Hash (readonly)
Returns a map of => [exception_1, exception2, …], ….
36 37 38 |
# File 'lib/right_support/net/request_balancer.rb', line 36 def details @details end |