Method: Gettc::HttpError#initialize
- Defined in:
- lib/gettc/download.rb
#initialize(request, response, message = "An error occurred while making Http request") ⇒ HttpError
Returns a new instance of HttpError.
16 17 18 19 20 21 22 |
# File 'lib/gettc/download.rb', line 16 def initialize(request, response, = "An error occurred while making Http request") @request = request @response = response super [ , "Request: #{get_url(@request)}", http_to_s(@request), @request.body, "Response: #{@response.class.to_s}", http_to_s(@response), @response.body ].join("\n") end |