Module: Net::HTTPExceptions

Included in:
HTTPError, HTTPFatalError, HTTPRetriableError, HTTPServerException
Defined in:
lib/net/http.rb

Overview

HTTP exception class. You cannot use HTTPExceptions directly; instead, you must use its subclasses.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#responseObject (readonly) Also known as: data

Returns the value of attribute response


2238
2239
2240
# File 'lib/net/http.rb', line 2238

def response
  @response
end

Instance Method Details

#initialize(msg, res) ⇒ HTTPExceptions

:nodoc:


2234
2235
2236
2237
# File 'lib/net/http.rb', line 2234

def initialize(msg, res)   #:nodoc:
  super msg
  @response = res
end