com.ibm.dse.tools.workbench.tbg
Class TbgException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.ibm.dse.tools.workbench.tbg.TbgException

public class TbgException
extends java.lang.Exception

This class implements the exceptions used by the TBG utility.

See Also:
Serialized Form

Field Summary
static int BREAK
          Break type TbgException.
static int BREAK_ALL
          Break type TbgException.
static int ERROR
          Error type TbgException.
 int type
          The exception type : ERROR, WARNING, BREAK or BREAK_ALL .
static int WARNING
          Warning type TbgException.
 
Constructor Summary
TbgException(int aType)
          This constructor creates a TbgException object.
TbgException(int aType, java.lang.String aMessage)
          This constructor creates a TbgException object.
 
Method Summary
 java.lang.String getMessage()
          Returns the detail message.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

type

public int type
The exception type : ERROR, WARNING, BREAK or BREAK_ALL .

ERROR

public static int ERROR
Error type TbgException.

WARNING

public static int WARNING
Warning type TbgException.

BREAK

public static int BREAK
Break type TbgException.

BREAK_ALL

public static int BREAK_ALL
Break type TbgException.
Constructor Detail

TbgException

public TbgException(int aType)
This constructor creates a TbgException object.

Sets the type of TbgException.

Parameters:
aType - int The type of the exception.

TbgException

public TbgException(int aType,
                    java.lang.String aMessage)
This constructor creates a TbgException object.

Sets the type of TbgException and its message.

Parameters:
aType - int The type of the exception.
aMessage - java.lang.String The detail message.
Method Detail

getMessage

public java.lang.String getMessage()
Returns the detail message.
Overrides:
getMessage in class java.lang.Throwable
Returns:
java.lang.String - The detailed message