Module: Gem::Net::HTTPExceptions

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

Overview

Gem::Net::HTTP exception class. You cannot use Gem::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/rubygems/vendor/net-http/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/rubygems/vendor/net-http/lib/net/http/exceptions.rb', line 7

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