Exception: XmlNodeStream::HttpError
- Inherits:
-
StandardError
- Object
- StandardError
- XmlNodeStream::HttpError
- Defined in:
- lib/xml_node_stream/http_stream.rb
Overview
Error raised when an HTTP request returns an unsuccessful response.
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(message, response = nil) ⇒ HttpError
constructor
A new instance of HttpError.
Constructor Details
#initialize(message, response = nil) ⇒ HttpError
Returns a new instance of HttpError.
13 14 15 16 |
# File 'lib/xml_node_stream/http_stream.rb', line 13 def initialize(, response = nil) super() @response = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
9 10 11 |
# File 'lib/xml_node_stream/http_stream.rb', line 9 def response @response end |