Exception: CMDB::BadValue
Overview
A value of an unsupported type was encountered in the CMDB.
Instance Attribute Summary collapse
-
#key ⇒ String
readonly
The name of the key that contained the bad value.
-
#url ⇒ URI
readonly
Filesystem or network location of the bad value.
Instance Method Summary collapse
-
#initialize(url, key, value) ⇒ BadValue
constructor
A new instance of BadValue.
Constructor Details
#initialize(url, key, value) ⇒ BadValue
Returns a new instance of BadValue.
52 53 54 55 56 |
# File 'lib/cmdb.rb', line 52 def initialize(url, key, value) @url = url @key = key super("Values of type #{value.class.name} are unsupported") end |
Instance Attribute Details
#key ⇒ String (readonly)
Returns the name of the key that contained the bad value.
47 48 49 |
# File 'lib/cmdb.rb', line 47 def key @key end |
#url ⇒ URI (readonly)
Returns filesystem or network location of the bad value.
44 45 46 |
# File 'lib/cmdb.rb', line 44 def url @url end |