class GoogleMaps::Services::Exceptions::HTTPError

Represents an unexpected HTTP error.

Attributes

status_code[RW]

@return [Symbol] status_code The response status code.

Public Class Methods

new(status_code) click to toggle source
# File lib/googlemaps/services/exceptions.rb, line 27
def initialize(status_code)
  self.status_code = status_code
end

Public Instance Methods

to_s() click to toggle source

Returns the string representation of this error.

@return [String] Human-readable error string.

# File lib/googlemaps/services/exceptions.rb, line 34
def to_s
  "HTTP Error: #{self.status_code}"
end