Exception: GoAPI::Http::Error
- Inherits:
-
StandardError
- Object
- StandardError
- GoAPI::Http::Error
- Defined in:
- lib/goapi/http.rb
Instance Method Summary collapse
-
#initialize(request_class, url, response) ⇒ Error
constructor
A new instance of Error.
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 |