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(msg, req = nil, resp = nil) ⇒ RestCallError

Returns a new instance of RestCallError.

Parameters:

  • req (defaults to: nil)

    HTTP Request object

  • resp (defaults to: nil)

    HTTP Response object

  • msg

    Error message



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

#requestObject (readonly)

Returns the value of attribute request.



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

def request
  @request
end

#responseObject (readonly)

Returns the value of attribute response.



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

def response
  @response
end