gishur.graph.core
Class GraphException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--gishur.graph.core.GraphException
All Implemented Interfaces:
java.io.Serializable

public class GraphException
extends java.lang.RuntimeException

Handles all exceptions trigger by invalid modifications of nodes, edges and graphs. The errorcodes tested by the getErrorString method are defined in the according interfaces Graph, Node, Edge and KeyValueHolder.

See Also:
Serialized Form

Field Summary
 GraphElement element
           
 int errorcode
           
static int FALSE_LINK_TYPE_ERROR
           
static int INVALID_FLOW_VALUE
           
static int INVALID_GRAPH_ERROR
           
static int INVALID_GRAPHELEMENT_ERROR
           
static int NOT_SUPPORTED_FUNCTION
           
static int UNCONNECTED_ELEMENT_ERROR
           
static int UNCONTAINED_ELEMENT_ERROR
           
static int UNKNOWN_ERROR
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNKNOWN_ERROR

public static final int UNKNOWN_ERROR

UNCONNECTED_ELEMENT_ERROR

public static final int UNCONNECTED_ELEMENT_ERROR

UNCONTAINED_ELEMENT_ERROR

public static final int UNCONTAINED_ELEMENT_ERROR

FALSE_LINK_TYPE_ERROR

public static final int FALSE_LINK_TYPE_ERROR

INVALID_FLOW_VALUE

public static final int INVALID_FLOW_VALUE

INVALID_GRAPH_ERROR

public static final int INVALID_GRAPH_ERROR

INVALID_GRAPHELEMENT_ERROR

public static final int INVALID_GRAPHELEMENT_ERROR

NOT_SUPPORTED_FUNCTION

public static final int NOT_SUPPORTED_FUNCTION

element

public GraphElement element

errorcode

public int errorcode