javatools.util
Class CommonException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--javatools.util.CommonException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
DbException, ReflectException, ResetException

public class CommonException
extends java.lang.Exception

A base class for other types of exceptions.

See Also:
Serialized Form

Constructor Summary
CommonException(java.lang.String mesg)
          Creates a new CommonException
CommonException(java.lang.String mesg, java.lang.Throwable exception)
          Creates a new CommonException
CommonException(java.lang.Throwable exception)
          Creates a new CommonException.
 
Method Summary
 java.lang.Throwable getNextException()
          Returns the next exception.
 java.lang.StackTraceElement[] getStackTrace()
          Returns the stack trace after this exception.
 void printStackTrace()
          Prints the stack trace to standard output.
 void printStackTrace(java.io.PrintStream s)
          Prints the stack trace to a print stream.
 void printStackTrace(java.io.PrintWriter s)
          Prints the stack trace to a print writer.
 java.lang.String toString()
          Returns the exception converted into a string.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CommonException

public CommonException(java.lang.String mesg)
Creates a new CommonException

Parameters:
mesg - The exception message.

CommonException

public CommonException(java.lang.String mesg,
                       java.lang.Throwable exception)
Creates a new CommonException

Parameters:
mesg - The message.
exception - The base exception.

CommonException

public CommonException(java.lang.Throwable exception)
Creates a new CommonException.

Parameters:
exception - The base exception.
Method Detail

getNextException

public java.lang.Throwable getNextException()
Returns the next exception.

Returns:
The next exception.

toString

public java.lang.String toString()
Returns the exception converted into a string.

Overrides:
toString in class java.lang.Throwable
Returns:
The string that represents this exception.

getStackTrace

public java.lang.StackTraceElement[] getStackTrace()
Returns the stack trace after this exception.

Overrides:
getStackTrace in class java.lang.Throwable
Returns:
The string representing the stack trace.

printStackTrace

public void printStackTrace(java.io.PrintWriter s)
Prints the stack trace to a print writer.

Overrides:
printStackTrace in class java.lang.Throwable
Parameters:
s - The print writer to use.

printStackTrace

public void printStackTrace()
Prints the stack trace to standard output.

Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintStream s)
Prints the stack trace to a print stream.

Overrides:
printStackTrace in class java.lang.Throwable
Parameters:
s - The print stream to use.