edu.ucla.stat.SOCR.touchgraph.graphlayout
Class TGException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by edu.ucla.stat.SOCR.touchgraph.graphlayout.TGException
All Implemented Interfaces:
java.io.Serializable

public class TGException
extends java.lang.Exception

An class for exceptions thrown during TouchGraph processing.

Version:
1.22-jre1.1 $Id: TGException.java,v 1.1 2010/01/20 20:38:32 jiecui Exp $
Author:
Alexander Shapiro, Murray Altheim
See Also:
Serialized Form

Field Summary
 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 Summary
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.
 
Method Summary
 int getId()
          If the message was expressed as a MessageId, return the original id (e.g.
 
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
 

Field Detail

NODE_EXISTS

public static final int NODE_EXISTS
An exception occurring when a Node already exists.

See Also:
Constant Field Values

NODE_DOESNT_EXIST

public static final int NODE_DOESNT_EXIST
An exception occurring when a Node doesn't exist.

See Also:
Constant Field Values

NODE_NO_ID

public static final int NODE_NO_ID
An exception occurring when a Node is missing its required ID.

See Also:
Constant Field Values

id

protected int id
An int containing an exception type identifier (ID).


exception

public java.lang.Exception exception
The embedded Exception if tunnelling.

Constructor Detail

TGException

public TGException(int id)
Constructor for TGException with Exception ID.

Parameters:
id - The unique message identifier.

TGException

public TGException(int id,
                   java.lang.String message)
Constructor for TGException with Exception ID and error message String.

Parameters:
id - The unique message identifier.
message - The Exception message.

TGException

public TGException(java.lang.String message)
Constructor for TGException with an error message String.

Parameters:
message - The Exception message.

TGException

public TGException(java.lang.Exception exception)
Constructor for TGException tunnelling the original Exception.

Parameters:
exception - The original Exception.
Method Detail

getId

public int getId()
If the message was expressed as a MessageId, return the original id (e.g. "45").

Returns:
the exception identifier.