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
readonly
Returns the value of attribute request.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(msg, req = nil, resp = nil) ⇒ RestCallError
constructor
A new instance of RestCallError.
Constructor Details
#initialize(msg, req = nil, resp = nil) ⇒ RestCallError
Returns a new instance of RestCallError.
11 12 13 14 15 |
# File 'lib/aspera/rest_call_error.rb', line 11 def initialize(msg, req=nil, resp=nil) @request = req @response = resp super(msg) end |
Instance Attribute Details
#request ⇒ Object (readonly)
Returns the value of attribute request.
6 7 8 |
# File 'lib/aspera/rest_call_error.rb', line 6 def request @request end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
6 7 8 |
# File 'lib/aspera/rest_call_error.rb', line 6 def response @response end |