Class: Aspera::Transfer::Result::Error

Inherits:
Result
  • Object
show all
Defined in:
lib/aspera/transfer/result.rb

Overview

At least one session failed.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(exception) ⇒ Error

Returns a new instance of Error.



25
26
27
28
# File 'lib/aspera/transfer/result.rb', line 25

def initialize(exception)
  super()
  @exception = exception
end

Instance Attribute Details

#exceptionStandardError (readonly)

Returns:

  • (StandardError)


23
24
25
# File 'lib/aspera/transfer/result.rb', line 23

def exception
  @exception
end

Instance Method Details

#to_sObject



30
31
32
# File 'lib/aspera/transfer/result.rb', line 30

def to_s
  "error: #{@exception.message}"
end