Exception: GoogleGeocoding::Errors::HttpError

Inherits:
BaseError
  • Object
show all
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

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