Exception: Aspera::AsCmd::Error

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

Overview

This exception is raised when ascmd returns an error.

Instance Method Summary collapse

Constructor Details

#initialize(errno, errstr, cmd, arguments) ⇒ Error

Returns a new instance of Error.



102
103
# File 'lib/aspera/ascmd.rb', line 102

def initialize(errno, errstr, cmd, arguments)
super(); @errno = errno; @errstr = errstr; @command = cmd; @arguments = arguments; end

Instance Method Details

#extended_messageObject



106
# File 'lib/aspera/ascmd.rb', line 106

def extended_message; "ascmd: errno=#{@errno} errstr=\"#{@errstr}\" command=#{@command} arguments=#{@arguments&.join(',')}"; end

#messageObject



105
# File 'lib/aspera/ascmd.rb', line 105

def message; "ascmd: #{@errstr} (#{@errno})"; end