Exception: CMDB::BadKey

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

Overview

Client used a malformed key name.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key, message = "Malformed key '#{key}'") ⇒ BadKey

Returns a new instance of BadKey.

Parameters:

  • name (String)


36
37
38
39
# File 'lib/cmdb.rb', line 36

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

Instance Attribute Details

#keyString (readonly)

Returns the name of the offending key.

Returns:

  • (String)

    the name of the offending key



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

def key
  @key
end