Exception: Aspera::AsCmd::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Aspera::AsCmd::Error
- Defined in:
- lib/aspera/ascmd.rb
Overview
This exception is raised when ascmd returns an error.
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#errno ⇒ Object
readonly
Returns the value of attribute errno.
-
#errstr ⇒ Object
readonly
Returns the value of attribute errstr.
Instance Method Summary collapse
- #extended_message ⇒ Object
-
#initialize(errno, errstr, cmd, args) ⇒ Error
constructor
A new instance of Error.
- #message ⇒ Object
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
#args ⇒ Object (readonly)
Returns the value of attribute args.
52 53 54 |
# File 'lib/aspera/ascmd.rb', line 52 def args @args end |
#command ⇒ Object (readonly)
Returns the value of attribute command.
52 53 54 |
# File 'lib/aspera/ascmd.rb', line 52 def command @command end |
#errno ⇒ Object (readonly)
Returns the value of attribute errno.
52 53 54 |
# File 'lib/aspera/ascmd.rb', line 52 def errno @errno end |
#errstr ⇒ Object (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_message ⇒ Object
57 |
# File 'lib/aspera/ascmd.rb', line 57 def ; "ascmd: errno=#{errno} errstr=\"#{errstr}\" command=\"#{command}\" args=#{args}"; end |
#message ⇒ Object
55 |
# File 'lib/aspera/ascmd.rb', line 55 def ; "ascmd: (#{errno}) #{errstr}"; end |