public class GraphException
extends java.lang.RuntimeException
RuntimeException
.Red (ssb) |
Red (myko) |
Constructor and Description |
---|
GraphException()
The default constructor without arguments.
|
GraphException(java.lang.String message)
Constructor with an argument of text description.
|
Modifier and Type | Method and Description |
---|---|
protected static java.lang.String |
_elementDump(java.lang.Object element,
Graph graph,
java.lang.String elementDescriptor)
|
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.
|
public GraphException()
public GraphException(java.lang.String message)
message
- The exception message.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.