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

Returns a new instance of Error.



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

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

Instance Attribute Details

#argsObject (readonly)

Returns the value of attribute args.



52
53
54
# File 'lib/aspera/ascmd.rb', line 52

def args
  @args
end

#commandObject (readonly)

Returns the value of attribute command.



52
53
54
# File 'lib/aspera/ascmd.rb', line 52

def command
  @command
end

#errnoObject (readonly)

Returns the value of attribute errno.



52
53
54
# File 'lib/aspera/ascmd.rb', line 52

def errno
  @errno
end

#errstrObject (readonly)

Returns the value of attribute errstr.



52
53
54
# File 'lib/aspera/ascmd.rb', line 52

def errstr
  @errstr
end

Instance Method Details

#extended_messageObject



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

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

#messageObject



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

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