Exception: Acta::InvalidCommand

Inherits:
CommandError show all
Defined in:
lib/acta/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(command) ⇒ InvalidCommand

Returns a new instance of InvalidCommand.



20
21
22
23
# File 'lib/acta/errors.rb', line 20

def initialize(command)
  @command = command
  super("Command #{command.class} is invalid: #{command.errors.full_messages.join(', ')}")
end

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



18
19
20
# File 'lib/acta/errors.rb', line 18

def command
  @command
end