javatools.util
Class CommonRuntimeException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--javatools.util.CommonRuntimeException
All Implemented Interfaces:
java.io.Serializable

public class CommonRuntimeException
extends java.lang.RuntimeException

A base class for other types of Runtime exceptions.

See Also:
Serialized Form

Constructor Summary
CommonRuntimeException(java.lang.String mesg)
          Creates a new CommonRuntimeException.
CommonRuntimeException(java.lang.String mesg, java.lang.Throwable exception)
          Creates a new CommonRuntimeException.
CommonRuntimeException(java.lang.Throwable exception)
          Creates a new CommonRuntimeException.
 
Method Summary
 java.lang.Throwable getNextException()
          Returns the next exception.
 java.lang.StackTraceElement[] getStackTrace()
          Returns the stack trace.
 void printStackTrace()
          Prints stack trace to standard output.
 void printStackTrace(java.io.PrintStream s)
          Prints 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 a string representing this exception.
 
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

CommonRuntimeException

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

Parameters:
mesg - The message.

CommonRuntimeException

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

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

CommonRuntimeException

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

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 a string representing this exception.

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

getStackTrace

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

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 stack trace to standard output.

Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

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

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