Exception: Pipe2me::HTTP::Error
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Pipe2me::HTTP::Error
- Extended by:
- Forwardable
- Defined in:
- lib/pipe2me/ext/http.rb
Overview
Base class for HTTP related errors.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
The response object (of class HTTP::Response).
Instance Method Summary collapse
-
#initialize(response) ⇒ Error
constructor
:nodoc:.
-
#message ⇒ Object
:nodoc:.
Constructor Details
#initialize(response) ⇒ Error
:nodoc:
19 20 21 |
# File 'lib/pipe2me/ext/http.rb', line 19 def initialize(response) #:nodoc: @response = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
The response object (of class HTTP::Response).
17 18 19 |
# File 'lib/pipe2me/ext/http.rb', line 17 def response @response end |
Instance Method Details
#message ⇒ Object
:nodoc:
26 27 28 |
# File 'lib/pipe2me/ext/http.rb', line 26 def #:nodoc: "#{url}: #{code} #{@response[0..120]} (#{@response.response.class})" end |