Module: Net::HTTPExceptions

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

Overview

Net::HTTP exception class. You cannot use Net::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.



11
12
13
# File 'lib/net/http/exceptions.rb', line 11

def response
  @response
end

Instance Method Details

#initialize(msg, res) ⇒ Object

:nodoc:



7
8
9
10
# File 'lib/net/http/exceptions.rb', line 7

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