Exception: Acta::InvalidCommand
- Inherits:
-
CommandError
- Object
- StandardError
- Error
- CommandError
- Acta::InvalidCommand
- Defined in:
- lib/acta/errors.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
Instance Method Summary collapse
-
#initialize(command) ⇒ InvalidCommand
constructor
A new instance of InvalidCommand.
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..join(', ')}") end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
18 19 20 |
# File 'lib/acta/errors.rb', line 18 def command @command end |