Exception: CMDB::BadKey

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

Overview

Client asked for an invalid or malformed key name.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key) ⇒ BadKey

Returns a new instance of BadKey.

Parameters:

  • name (String)


34
35
36
37
# File 'lib/cmdb.rb', line 34

def initialize(key)
  @key = key
  super("Malformed key '#{key}'")
end

Instance Attribute Details

#keyString (readonly)

Returns the name of the offending key.

Returns:

  • (String)

    the name of the offending key



31
32
33
# File 'lib/cmdb.rb', line 31

def key
  @key
end