Exception: GoogleMapsService::Error::BaseError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/google_maps_service/errors.rb

Overview

Base error, capable of wrapping another

Direct Known Subclasses

ApiError, ClientError, RedirectError, ServerError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ BaseError

Returns a new instance of BaseError.



7
8
9
# File 'lib/google_maps_service/errors.rb', line 7

def initialize(response)
  @response = response
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



5
6
7
# File 'lib/google_maps_service/errors.rb', line 5

def response
  @response
end