|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
mocgraph.GraphException
mocgraph.GraphWeightException
public class GraphWeightException
Exception for unweighted graphs or graphs with improper weights. This exception can also be thrown due to accessing elements with incorrect weights.
Constructor Summary | |
---|---|
GraphWeightException(java.lang.Object weight,
Element element,
Graph graph,
java.lang.String message)
Constructor with arguments of weight, element, graph, and a message. |
|
GraphWeightException(java.lang.String message)
Constructor for a given message. |
Method Summary |
---|
Methods inherited from class mocgraph.GraphException |
---|
_elementDump, elementDump, graphDump, weightDump |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GraphWeightException(java.lang.String message)
message
- The message.public GraphWeightException(java.lang.Object weight, Element element, Graph graph, java.lang.String message)
element
argument
to null
.
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |