Exception: AppMap::Depends::CommandError
- Inherits:
-
StandardError
- Object
- StandardError
- AppMap::Depends::CommandError
- Defined in:
- lib/appmap/depends/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.
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
#command ⇒ Object (readonly)
Returns the value of attribute command.
5 6 7 |
# File 'lib/appmap/depends/command_error.rb', line 5 def command @command end |
#msg ⇒ Object (readonly)
Returns the value of attribute msg.
5 6 7 |
# File 'lib/appmap/depends/command_error.rb', line 5 def msg @msg end |