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
rubocop:disable Style/Semicolon.
- #message ⇒ Object
Constructor Details
#initialize(errno, errstr, cmd, arguments) ⇒ Error
rubocop:disable Style/Semicolon
166 |
# File 'lib/aspera/ascmd.rb', line 166 def initialize(errno, errstr, cmd, arguments); super(); @errno = errno; @errstr = errstr; @command = cmd; @arguments = arguments; end |
Instance Method Details
#extended_message ⇒ Object
168 |
# File 'lib/aspera/ascmd.rb', line 168 def ; "ascmd: errno=#{@errno} errstr=\"#{@errstr}\" command=#{@command} arguments=#{@arguments&.join(',')}"; end |
#message ⇒ Object
167 |
# File 'lib/aspera/ascmd.rb', line 167 def ; "ascmd: #{@errstr} (#{@errno})"; end |