Exception: CMDB::MissingKey
Overview
Client asserted the existence of a key that does not exist in the CMDB.
Instance Attribute Summary collapse
-
#key ⇒ String
readonly
The name of the offending key.
Instance Method Summary collapse
-
#initialize(key) ⇒ MissingKey
constructor
A new instance of MissingKey.
Constructor Details
#initialize(key) ⇒ MissingKey
Returns a new instance of MissingKey.
23 24 25 26 |
# File 'lib/cmdb.rb', line 23 def initialize(key) @key = key super("Key '#{key}' not found in CMDB") end |
Instance Attribute Details
#key ⇒ String (readonly)
Returns the name of the offending key.
20 21 22 |
# File 'lib/cmdb.rb', line 20 def key @key end |