com.opensymphony.module.sitemesh.factory
public class: FactoryException [javadoc |
source]
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.opensymphony.module.sitemesh.factory.FactoryException
All Implemented Interfaces:
Serializable
This RuntimeException is thrown by the Factory if it cannot initialize or perform
an appropriate function.
- author:
< - a href="mailto:joe@truemesh.com">Joe Walnes
- version:
$ - Revision: 1.1 $
| Field Summary |
|---|
| protected Exception | exception | |
| Methods from java.lang.Throwable: |
|---|
|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Method from com.opensymphony.module.sitemesh.factory.FactoryException Detail: |
public Exception getRootCause() {
return exception;
}
Get the original cause of the Exception. Returns null if not known. |
public void printStackTrace() {
super.printStackTrace();
if (exception != null) {
synchronized (System.err) {
System.err.println("\nRoot cause:");
exception.printStackTrace();
}
}
}
|
public void printStackTrace(PrintStream s) {
super.printStackTrace(s);
if (exception != null) {
synchronized (s) {
s.println("\nRoot cause:");
exception.printStackTrace(s);
}
}
}
|
public void printStackTrace(PrintWriter s) {
super.printStackTrace(s);
if (exception != null) {
synchronized (s) {
s.println("\nRoot cause:");
exception.printStackTrace(s);
}
}
}
|