Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.thermidor.util.exception
Class GenericRuntimeException  view GenericRuntimeException download GenericRuntimeException.java

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended bycom.thermidor.util.exception.GenericRuntimeException
All Implemented Interfaces:
java.io.Serializable

public abstract class GenericRuntimeException
extends java.lang.RuntimeException

The purpose of the GenericRuntimeException is to provied a base class for exceptions. This Exception class is similar to the new version of the Throwable class provided in version 1.4 of the J2SDK in that it provides for nested exceptions.

Version:
1.0

Nested Class Summary
 
Nested classes inherited from class java.lang.Throwable
 
Field Summary
private static java.lang.String END
          A message constant to indicate the end of the stack trace of the nested exception.
private  java.lang.Throwable nested
          The root cause of this exception instance.
private static java.lang.String START
          A message constant to indicate the state of the nested exception stack trace.
private static java.lang.String START_END
          A message constant to indicate the end of the message past of the nested exception.
 
Fields inherited from class java.lang.RuntimeException
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
GenericRuntimeException()
          Construct a default instance of the GenericRuntimeException class.
GenericRuntimeException(java.lang.String message)
          Construct a new instance of the GenericRuntimeException with the specified message string.
GenericRuntimeException(java.lang.Throwable t)
          Construct an instance of a GenericRuntimeException that encapsulates the specified Throwable instance as the root cause.
GenericRuntimeException(java.lang.Throwable t, java.lang.String message)
          Construct a new instance of a GenericRuntimeException with the specified root cause and message string.
 
Method Summary
 java.lang.Throwable getRootCause()
          Retrieve the Throwable instance that was the root cause of this exception or null if there was no root cause.
 void printStackTrace()
          Print the stack trace of this exception and its nested exception instance to standard error.
 void printStackTrace(java.io.PrintStream ps)
          Print the stack trace of this exception and the nested Throwable instance to the specified print stream.
 void printStackTrace(java.io.PrintWriter pw)
          Print the statck trace of this exception and the nested Throwable instance to the specified print writer.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

nested

private java.lang.Throwable nested
The root cause of this exception instance.


START

private static final java.lang.String START
A message constant to indicate the state of the nested exception stack trace.

See Also:
Constant Field Values

START_END

private static final java.lang.String START_END
A message constant to indicate the end of the message past of the nested exception.

See Also:
Constant Field Values

END

private static final java.lang.String END
A message constant to indicate the end of the stack trace of the nested exception.

See Also:
Constant Field Values
Constructor Detail

GenericRuntimeException

public GenericRuntimeException()
Construct a default instance of the GenericRuntimeException class.


GenericRuntimeException

public GenericRuntimeException(java.lang.String message)
Construct a new instance of the GenericRuntimeException with the specified message string.


GenericRuntimeException

public GenericRuntimeException(java.lang.Throwable t)
Construct an instance of a GenericRuntimeException that encapsulates the specified Throwable instance as the root cause.


GenericRuntimeException

public GenericRuntimeException(java.lang.Throwable t,
                               java.lang.String message)
Construct a new instance of a GenericRuntimeException with the specified root cause and message string.

Method Detail

printStackTrace

public void printStackTrace()
Print the stack trace of this exception and its nested exception instance to standard error.


printStackTrace

public void printStackTrace(java.io.PrintWriter pw)
Print the statck trace of this exception and the nested Throwable instance to the specified print writer.


printStackTrace

public void printStackTrace(java.io.PrintStream ps)
Print the stack trace of this exception and the nested Throwable instance to the specified print stream.


getRootCause

public java.lang.Throwable getRootCause()
Retrieve the Throwable instance that was the root cause of this exception or null if there was no root cause.