Exception: AppMap::CommandError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/appmap/command_error.rb

Overview

Raised when a system / shell command fails.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(command, msg = nil) ⇒ CommandError

Returns a new instance of CommandError.



6
7
8
9
10
11
# File 'lib/appmap/command_error.rb', line 6

def initialize(command, msg = nil)
  super [ "Command failed: #{command}", msg ].compact.join('; ')

  @command = command
  @msg = msg
end

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



4
5
6
# File 'lib/appmap/command_error.rb', line 4

def command
  @command
end

#msgObject (readonly)

Returns the value of attribute msg.



4
5
6
# File 'lib/appmap/command_error.rb', line 4

def msg
  @msg
end