GraphWeightException
public GraphWeightException(java.lang.Object weight,
Element element,
Graph graph,
java.lang.String message)
Constructor with arguments of weight, element, graph,
and a message.
This exception is generally thrown because of invalid weight
association to a specific element. It can also be thrown for
unspecific elements by setting the element
argument
to null
.
- Parameters:
weight
- The invalid weight.
element
- The element to associate the invalid weight. Set
null
for unspecific elements.
graph
- The graph accessed.
message
- The exception message.