Exception: CMDB::BadCommand

Inherits:
Error
  • Object
show all
Defined in:
lib/cmdb.rb

Overview

Client asked to do something that does not make sense.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(command, message = 'Unrecognized command') ⇒ BadCommand

Returns a new instance of BadCommand.



79
80
81
82
# File 'lib/cmdb.rb', line 79

def initialize(command, message='Unrecognized command')
  super(message)
  @command = command
end

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



77
78
79
# File 'lib/cmdb.rb', line 77

def command
  @command
end