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

Quick Search    Search Deep

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

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Error
          extended bycom.thermidor.util.exception.GenericError
All Implemented Interfaces:
java.io.Serializable

public abstract class GenericError
extends java.lang.Error

The purpose of the GenericException 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.Error
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
GenericError()
          Construct a default instance of the GenericError.
GenericError(java.lang.String message)
          Construct a new instance of the GenericException with the specified message string.
GenericError(java.lang.Throwable t)
          Construct an instance of a GenericException that encapsulates the specified Throwable instance as the root cause.
GenericError(java.lang.Throwable t, java.lang.String message)
          Construct a new instance of a GenericException 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

GenericError

public GenericError()
Construct a default instance of the GenericError.


GenericError

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


GenericError

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


GenericError

public GenericError(java.lang.Throwable t,
                    java.lang.String message)
Construct a new instance of a GenericException 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.