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