Exception: CMDB::MissingKey

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

Overview

Client asserted the existence of a key that does not exist in the CMDB.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key) ⇒ MissingKey

Returns a new instance of MissingKey.

Parameters:

  • name (String)


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

#keyString (readonly)

Returns the name of the offending key.

Returns:

  • (String)

    the name of the offending key



21
22
23
# File 'lib/cmdb.rb', line 21

def key
  @key
end