Module: Net::HTTPExceptions

Included in:
HTTPError, HTTPFatalError, HTTPRetriableError, HTTPServerException
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



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

def response
  @response
end

Instance Method Details

#initialize(msg, res) ⇒ Object

:nodoc:



5
6
7
8
# File 'lib/net/http/exceptions.rb', line 5

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