Exception: Machinery::Errors::CommandFailed
- Inherits:
-
MachineryError
- Object
- StandardError
- MachineryError
- Machinery::Errors::CommandFailed
- Defined in:
- lib/exceptions.rb
Instance Method Summary collapse
-
#initialize(command, error) ⇒ CommandFailed
constructor
A new instance of CommandFailed.
- #to_s ⇒ Object
Constructor Details
#initialize(command, error) ⇒ CommandFailed
Returns a new instance of CommandFailed.
134 135 136 137 |
# File 'lib/exceptions.rb', line 134 def initialize(command, error) @command = command @error = error end |
Instance Method Details
#to_s ⇒ Object
139 140 141 142 |
# File 'lib/exceptions.rb', line 139 def to_s "The required call '#{@command}' does not seem to work as expected on the" \ " inspected system. This is the error message:\n#{@error}" end |