Module: Net::HTTPExceptions
- Included in:
- HTTPError, HTTPFatalError, HTTPRetriableError, HTTPServerException
- Defined in:
- lib/mechanize/net-overrides/net/http.rb
Overview
HTTP exception class. You must use its subclasses.
Instance Attribute Summary collapse
-
#response ⇒ Object
(also: #data)
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(msg, res) ⇒ Object
:nodoc:.
Instance Attribute Details
#response ⇒ Object (readonly) Also known as: data
Returns the value of attribute response.
1532 1533 1534 |
# File 'lib/mechanize/net-overrides/net/http.rb', line 1532 def response @response end |
Instance Method Details
#initialize(msg, res) ⇒ Object
:nodoc:
1528 1529 1530 1531 |
# File 'lib/mechanize/net-overrides/net/http.rb', line 1528 def initialize(msg, res) #:nodoc: super msg @response = res end |