Exception: Machinery::Errors::CommandFailed

Inherits:
MachineryError show all
Defined in:
lib/exceptions.rb

Instance Method Summary collapse

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_sObject



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