Exception: CMDB::BadCommand
Overview
Client asked to do something that does not make sense.
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
Instance Method Summary collapse
-
#initialize(command, message = 'Unrecognized command') ⇒ BadCommand
constructor
A new instance of BadCommand.
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, ='Unrecognized command') super() @command = command end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
77 78 79 |
# File 'lib/cmdb.rb', line 77 def command @command end |