Exception: Aspera::RestCallError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/aspera/rest_call_error.rb

Overview

raised on error after REST call

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(req, resp, msg) ⇒ RestCallError

Returns a new instance of RestCallError.

Parameters:

  • http

    response



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

#requestObject

Returns the value of attribute request.



4
5
6
# File 'lib/aspera/rest_call_error.rb', line 4

def request
  @request
end

#responseObject

Returns the value of attribute response.



5
6
7
# File 'lib/aspera/rest_call_error.rb', line 5

def response
  @response
end