java.lang.Object
java.lang.Throwable
java.lang.Exception
com.thermidor.util.exception.GenericException
- All Implemented Interfaces:
- java.io.Serializable
- public abstract class GenericException
- extends java.lang.Exception
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 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.Exception |
|
| Fields inherited from class java.lang.Throwable |
|
|
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. |
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
GenericException
public GenericException()
- Construct a default instance of the GenericException class.
GenericException
public GenericException(java.lang.String message)
- Construct a new instance of the GenericException with the specified
message string.
GenericException
public GenericException(java.lang.Throwable t)
- Construct an instance of a GenericException that encapsulates the
specified Throwable instance as the root cause.
GenericException
public GenericException(java.lang.Throwable t,
java.lang.String message)
- Construct a new instance of a GenericException with the specified
root cause and message string.
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.