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 Method Summary collapse
- #extended_message ⇒ Object
-
#initialize(errno, errstr, cmd, arguments) ⇒ Error
constructor
A new instance of Error.
- #message ⇒ Object
Constructor Details
#initialize(errno, errstr, cmd, arguments) ⇒ Error
Returns a new instance of Error.
158 159 |
# File 'lib/aspera/ascmd.rb', line 158 def initialize(errno, errstr, cmd, arguments) super(); @errno = errno; @errstr = errstr; @command = cmd; @arguments = arguments; end |
Instance Method Details
#extended_message ⇒ Object
162 |
# File 'lib/aspera/ascmd.rb', line 162 def ; "ascmd: errno=#{@errno} errstr=\"#{@errstr}\" command=#{@command} arguments=#{@arguments&.join(',')}"; end |
#message ⇒ Object
161 |
# File 'lib/aspera/ascmd.rb', line 161 def ; "ascmd: #{@errstr} (#{@errno})"; end |