com.touchgraph.graphlayout
Class TGException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.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.21 $Id: TGException.java,v 1.1.1.1 2004/02/06 08:44:05 keesj 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.


Copyright © 2003-2004 SourceForge. All Rights Reserved.