Exception: CMDB::BadValue
Overview
A value of an unsupported type was encountered in the CMDB or filesystem.
Instance Attribute Summary collapse
-
#key ⇒ String
readonly
The name of the key that contained the bad value.
-
#uri ⇒ URI
readonly
Source that contains the bad data.
Instance Method Summary collapse
-
#initialize(uri, key, value, desc = nil) ⇒ BadValue
constructor
A new instance of BadValue.
Constructor Details
#initialize(uri, key, value, desc = nil) ⇒ BadValue
Returns a new instance of BadValue.
53 54 55 56 57 58 59 |
# File 'lib/cmdb.rb', line 53 def initialize(uri, key, value, desc=nil) @uri = uri @key = key msg = "Unsupported #{value.class.name} value" msg << ": #{desc}" if desc super(msg) end |
Instance Attribute Details
#key ⇒ String (readonly)
Returns the name of the key that contained the bad value.
48 49 50 |
# File 'lib/cmdb.rb', line 48 def key @key end |
#uri ⇒ URI (readonly)
Returns source that contains the bad data.
45 46 47 |
# File 'lib/cmdb.rb', line 45 def uri @uri end |