Exception: Derelict::Instance::CommandFailed
- Defined in:
- lib/derelict/instance/command_failed.rb
Overview
Represents an invalid instance, which can’t be used with Derelict
Instance Method Summary collapse
-
#initialize(command = nil, result = nil) ⇒ CommandFailed
constructor
Initializes a new instance of this exception, for a command.
Constructor Details
#initialize(command = nil, result = nil) ⇒ CommandFailed
Initializes a new instance of this exception, for a command
* command: The name of the command which failed (optional,
provides extra detail in the message)
* result: The result (Derelict::Executer) for the command
which failed (optional, provides extra detail in
the message)
12 13 14 |
# File 'lib/derelict/instance/command_failed.rb', line 12 def initialize(command = nil, result = nil) super [, describe(command, result)].join end |