Exception: AddressGeocoder::ConnectionError
- Defined in:
- lib/address_geocoder/error.rb
Overview
Class that defines an error representing a failure in connection with a third party Maps API
Instance Method Summary collapse
-
#initialize(msg = nil) ⇒ ConnectionError
constructor
A new instance of ConnectionError.
- #message ⇒ Object
Constructor Details
#initialize(msg = nil) ⇒ ConnectionError
Returns a new instance of ConnectionError.
22 23 24 |
# File 'lib/address_geocoder/error.rb', line 22 def initialize(msg = nil) @msg = msg end |
Instance Method Details
#message ⇒ Object
26 27 28 29 |
# File 'lib/address_geocoder/error.rb', line 26 def msg = 'Failed To Connect' @msg ? "#{msg}: #{@msg}" : msg end |