class GoogleDistanceMatrix::ClientError
Public: Got an error where the client seems to be doing something wrong
These errors comes from http 4xx errors, or API errors like MAX_ELEMENTS_EXCEEDED etc. See developers.google.com/maps/documentation/distancematrix/#StatusCodes for info.
Attributes
response[R]
status_read_from_api_response[R]
Public Class Methods
new(response, status_read_from_api_response = nil)
click to toggle source
# File lib/google_distance_matrix/errors.rb, line 66 def initialize(response, status_read_from_api_response = nil) @response = response @status_read_from_api_response = status_read_from_api_response end
Public Instance Methods
to_s()
click to toggle source
# File lib/google_distance_matrix/errors.rb, line 71 def to_s "GoogleDistanceMatrix::ClientError - \ #{[response, status_read_from_api_response].compact.join('. ')}." end