Exception: Derelict::Instance::CommandFailed

Inherits:
Exception
  • Object
show all
Defined in:
lib/derelict/instance/command_failed.rb

Overview

Represents an invalid instance, which can’t be used with Derelict

Instance Method Summary collapse

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 [default_message, describe(command, result)].join
end