Exception: AppMap::Depends::CommandError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/appmap/depends/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.



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

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.



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

def command
  @command
end

#msgObject (readonly)

Returns the value of attribute msg.



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

def msg
  @msg
end