Exception: AppMap::CommandError
- Defined in:
- lib/appmap/command_error.rb
Overview
Raised when a system / shell command fails.
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#msg ⇒ Object
readonly
Returns the value of attribute msg.
Instance Method Summary collapse
-
#initialize(command, msg = nil) ⇒ CommandError
constructor
A new instance of CommandError.
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
#command ⇒ Object (readonly)
Returns the value of attribute command.
4 5 6 |
# File 'lib/appmap/command_error.rb', line 4 def command @command end |
#msg ⇒ Object (readonly)
Returns the value of attribute msg.
4 5 6 |
# File 'lib/appmap/command_error.rb', line 4 def msg @msg end |