Exception: Aspera::RestCallError
- Inherits:
-
StandardError
- Object
- StandardError
- Aspera::RestCallError
- Defined in:
- lib/aspera/rest_call_error.rb
Overview
raised on error after REST call
Instance Attribute Summary collapse
-
#request ⇒ Object
Returns the value of attribute request.
-
#response ⇒ Object
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(req, resp, msg) ⇒ RestCallError
constructor
A new instance of RestCallError.
Constructor Details
#initialize(req, resp, msg) ⇒ RestCallError
Returns a new instance of RestCallError.
7 8 9 10 11 |
# File 'lib/aspera/rest_call_error.rb', line 7 def initialize(req,resp,msg) @request = req @response = resp super(msg) end |
Instance Attribute Details
#request ⇒ Object
Returns the value of attribute request.
4 5 6 |
# File 'lib/aspera/rest_call_error.rb', line 4 def request @request end |
#response ⇒ Object
Returns the value of attribute response.
5 6 7 |
# File 'lib/aspera/rest_call_error.rb', line 5 def response @response end |