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