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
rubocop:disable Style/Semicolon.
- #message ⇒ Object
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
#args ⇒ Object (readonly)
Returns the value of attribute args.
56 57 58 |
# File 'lib/aspera/ascmd.rb', line 56 def args @args end |
#command ⇒ Object (readonly)
Returns the value of attribute command.
56 57 58 |
# File 'lib/aspera/ascmd.rb', line 56 def command @command end |
#errno ⇒ Object (readonly)
Returns the value of attribute errno.
56 57 58 |
# File 'lib/aspera/ascmd.rb', line 56 def errno @errno end |
#errstr ⇒ Object (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_message ⇒ Object
62 |
# File 'lib/aspera/ascmd.rb', line 62 def ; "ascmd: errno=#{errno} errstr=\"#{errstr}\" command=\"#{command}\" args=#{args}"; end |
#message ⇒ Object
60 |
# File 'lib/aspera/ascmd.rb', line 60 def ; "ascmd: (#{errno}) #{errstr}"; end |