Exception: GoogleDistanceMatrix::ServerError
- Defined in:
- lib/google_distance_matrix/errors.rb
Overview
Public: Got a request error back trying to do a request
This includes wire errors like timeouts etc, and server errors like 5xx. Inspect error_or_response for more information.
Instance Attribute Summary collapse
-
#error_or_response ⇒ Object
readonly
Returns the value of attribute error_or_response.
Instance Method Summary collapse
-
#initialize(error_or_response) ⇒ ServerError
constructor
A new instance of ServerError.
- #to_s ⇒ Object
Constructor Details
#initialize(error_or_response) ⇒ ServerError
Returns a new instance of ServerError.
49 50 51 |
# File 'lib/google_distance_matrix/errors.rb', line 49 def initialize(error_or_response) @error_or_response = error_or_response end |
Instance Attribute Details
#error_or_response ⇒ Object (readonly)
Returns the value of attribute error_or_response.
47 48 49 |
# File 'lib/google_distance_matrix/errors.rb', line 47 def error_or_response @error_or_response end |
Instance Method Details
#to_s ⇒ Object
53 54 55 |
# File 'lib/google_distance_matrix/errors.rb', line 53 def to_s "GoogleDistanceMatrix::ServerError - #{error_or_response.inspect}." end |