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.
22 23 24 25 |
# File 'lib/cmdb.rb', line 22 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.
19 20 21 |
# File 'lib/cmdb.rb', line 19 def key @key end |