public class TGException
extends java.lang.Exception
An class for exceptions thrown during TouchGraph processing.
Modifier and Type | Field and Description |
---|---|
java.lang.Exception |
exception
The embedded Exception if tunnelling.
|
protected int |
id
An int containing an exception type identifier (ID).
|
static int |
NODE_DOESNT_EXIST
An exception occurring when a Node doesn't exist.
|
static int |
NODE_EXISTS
An exception occurring when a Node already exists.
|
static int |
NODE_NO_ID
An exception occurring when a Node is missing its required ID.
|
Constructor and Description |
---|
TGException(java.lang.Exception exception)
Constructor for TGException tunnelling the original Exception.
|
TGException(int id)
Constructor for TGException with Exception ID.
|
TGException(int id,
java.lang.String message)
Constructor for TGException with Exception ID and error message String.
|
TGException(java.lang.String message)
Constructor for TGException with an error message String.
|
Modifier and Type | Method and Description |
---|---|
int |
getId()
If the message was expressed as a MessageId, return the original
id (e.g.
|
public static final int NODE_EXISTS
public static final int NODE_DOESNT_EXIST
public static final int NODE_NO_ID
protected int id
public java.lang.Exception exception
public TGException(int id)
id
- The unique message identifier.public TGException(int id, java.lang.String message)
id
- The unique message identifier.message
- The Exception message.public TGException(java.lang.String message)
message
- The Exception message.public TGException(java.lang.Exception exception)
exception
- The original Exception.