|
|||||||||
| 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
ptolemy.graph.GraphException
public class GraphException
Base exception for graph errors. This is also an instance of
RuntimeException.
| Red (ssb) |
| Red (myko) |
| Constructor Summary | |
|---|---|
GraphException()
The default constructor without arguments. |
|
GraphException(java.lang.String message)
Constructor with an argument of text description. |
|
| Method Summary | |
|---|---|
protected static java.lang.String |
_elementDump(java.lang.Object element,
Graph graph,
java.lang.String elementDescriptor)
Return a dump of an element ( Node, Edge,
or weight) and the container graph suitable to be appended
to an error message. |
static java.lang.String |
elementDump(Element element,
Graph graph)
Return a dump of a graph element and the container graph suitable to be appended to an error message. |
static java.lang.String |
graphDump(Graph graph)
Return a dump of this graph suitable to be appended to an error message. |
static java.lang.String |
weightDump(java.lang.Object weight)
Return a dump of a weight and the container graph suitable to be appended to an error message. |
| 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 GraphException()
public GraphException(java.lang.String message)
message - The exception message.| Method Detail |
|---|
public static java.lang.String graphDump(Graph graph)
graph - The graph to dump.
public static java.lang.String elementDump(Element element,
Graph graph)
element - The element to dump.graph - The graph where the element resides.
public static java.lang.String weightDump(java.lang.Object weight)
elementDump(Element, Graph) follows.
weight - The weight to dump.
protected static java.lang.String _elementDump(java.lang.Object element,
Graph graph,
java.lang.String elementDescriptor)
Node, Edge,
or weight) and the container graph suitable to be appended
to an error message.
element - The element to dump.graph - The container graph.elementDescriptor - Descriptor of the element.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||