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 Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

rubocop:disable Style/Semicolon



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

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

Instance Attribute Details

#argsObject (readonly)

Returns the value of attribute args.



56
57
58
# File 'lib/aspera/ascmd.rb', line 56

def args
  @args
end

#commandObject (readonly)

Returns the value of attribute command.



56
57
58
# File 'lib/aspera/ascmd.rb', line 56

def command
  @command
end

#errnoObject (readonly)

Returns the value of attribute errno.



56
57
58
# File 'lib/aspera/ascmd.rb', line 56

def errno
  @errno
end

#errstrObject (readonly)

Returns the value of attribute errstr.



56
57
58
# File 'lib/aspera/ascmd.rb', line 56

def errstr
  @errstr
end

Instance Method Details

#extended_messageObject



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

def extended_message; "ascmd: errno=#{errno} errstr=\"#{errstr}\" command=\"#{command}\" args=#{args}"; end

#messageObject



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

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