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 Method Summary collapse

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_messageObject



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

def extended_message; "ascmd: errno=#{@errno} errstr=\"#{@errstr}\" command=#{@command} arguments=#{@arguments&.join(',')}"; end

#messageObject



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

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