Exception: GoAPI::Http::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/goapi/http.rb

Instance Method Summary collapse

Constructor Details

#initialize(request_class, url, response) ⇒ Error

Returns a new instance of Error.



7
8
9
# File 'lib/goapi/http.rb', line 7

def initialize(request_class, url, response)
  super("error[#{request_class.name}][#{url}][#{response.code}]: #{response.body}")
end