|
|||||||||
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.GraphElementException
public class GraphElementException
The exception of accessing graph elements in wrong ways. This exception could be caused by accessing nonexistent elements or elements with incorrect association values.
Constructor Summary | |
---|---|
GraphElementException(Element element,
Graph graph,
java.lang.String message)
Constructor with arguments of element, graph, and a message. |
|
GraphElementException(java.lang.String message)
Constructor for a given message. |
Method Summary | |
---|---|
static void |
checkEdge(Edge edge,
Graph graph)
Verify that an edge is in the container graph. |
static void |
checkNode(Node node,
Graph graph)
Verify that a node is in the container graph. |
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 GraphElementException(java.lang.String message)
message
- The message.public GraphElementException(Element element, Graph graph, java.lang.String message)
element
- The invalid element.graph
- The graph accessed.message
- The exception message.Method Detail |
---|
public static void checkNode(Node node, Graph graph)
node
- The node to verify.graph
- The container graph.
java.lang.IllegalArgumentException
- If the node is not in the graph.public static void checkEdge(Edge edge, Graph graph)
edge
- The edge to verify.graph
- The container graph.
java.lang.IllegalArgumentException
- If the edge is not in the graph.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |