Exception: CMDB::BadValue

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

Overview

A value of an unsupported type was encountered in the CMDB.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url, key, value) ⇒ BadValue

Returns a new instance of BadValue.

Parameters:

  • url (URI)

    filesystem or network location of the bad value

  • key (String)

    CMDB key name under which the bad value was found

  • value (Object)

    the bad value itself



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

#keyString (readonly)

Returns the name of the key that contained the bad value.

Returns:

  • (String)

    the name of the key that contained the bad value



47
48
49
# File 'lib/cmdb.rb', line 47

def key
  @key
end

#urlURI (readonly)

Returns filesystem or network location of the bad value.

Returns:

  • (URI)

    filesystem or network location of the bad value



44
45
46
# File 'lib/cmdb.rb', line 44

def url
  @url
end