Exception: MintHttp::ResponseError
- Defined in:
- lib/mint_http/errors.rb
Direct Known Subclasses
Instance Attribute Summary collapse
- #response ⇒ HTTP::Response readonly
Instance Method Summary collapse
-
#initialize(msg, response) ⇒ ResponseError
constructor
A new instance of ResponseError.
- #to_s ⇒ Object
Constructor Details
#initialize(msg, response) ⇒ ResponseError
Returns a new instance of ResponseError.
44 45 46 47 |
# File 'lib/mint_http/errors.rb', line 44 def initialize(msg, response) super(msg) @response = response end |
Instance Attribute Details
#response ⇒ HTTP::Response (readonly)
42 43 44 |
# File 'lib/mint_http/errors.rb', line 42 def response @response end |
Instance Method Details
#to_s ⇒ Object
49 50 51 |
# File 'lib/mint_http/errors.rb', line 49 def to_s response.inspect end |