Exception: GoogleGeocoding::Errors::HttpError
- Defined in:
- lib/google_geocoding/errors.rb
Overview
Http error, will be raised when the server returns with a status code outside the 200…300 range.
Instance Method Summary collapse
-
#initialize(address, response) ⇒ HttpError
constructor
A new instance of HttpError.
Constructor Details
#initialize(address, response) ⇒ HttpError
Returns a new instance of HttpError.
8 9 10 11 12 |
# File 'lib/google_geocoding/errors.rb', line 8 def initialize(address, response) @address = address @response = response super "Could not geocode '#{@address}'. Server responded with #{@response.status}" end |