Exception: HTTPClient::BadResponseError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- HTTPClient::BadResponseError
- Defined in:
- lib/httpclient.rb
Overview
Raised for indicating HTTP response error.
Instance Attribute Summary collapse
-
#res ⇒ Object
readonly
- HTTP::Message
-
a response.
Instance Method Summary collapse
-
#initialize(msg, res = nil) ⇒ BadResponseError
constructor
:nodoc:.
Constructor Details
#initialize(msg, res = nil) ⇒ BadResponseError
:nodoc:
249 250 251 252 |
# File 'lib/httpclient.rb', line 249 def initialize(msg, res = nil) # :nodoc: super(msg) @res = res end |
Instance Attribute Details
#res ⇒ Object (readonly)
- HTTP::Message
-
a response
247 248 249 |
# File 'lib/httpclient.rb', line 247 def res @res end |