Exception: CMDB::BadKey
Overview
Client asked for an invalid or malformed key name.
Instance Attribute Summary collapse
-
#key ⇒ String
readonly
The name of the offending key.
Instance Method Summary collapse
-
#initialize(key) ⇒ BadKey
constructor
A new instance of BadKey.
Constructor Details
#initialize(key) ⇒ BadKey
Returns a new instance of BadKey.
34 35 36 37 |
# File 'lib/cmdb.rb', line 34 def initialize(key) @key = key super("Malformed key '#{key}'") end |
Instance Attribute Details
#key ⇒ String (readonly)
Returns the name of the offending key.
31 32 33 |
# File 'lib/cmdb.rb', line 31 def key @key end |