|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.htmlutil.ExceptionAction
ExceptionAction is a TemplateAction that stores an exception during template processing. It only dumps it to stdout and throws it when the cached template is executed. Exception handling is done in this way to provide a stack trace on the first and all subsequent page hits while still allowing the caching process to function normally. To fix the problem causing the exception, either the template must be edited or the server must be shut down. In either case, the template will be re-read and re-cached, so there is no chance of stale exceptions remaining in the system.
Field Summary | |
private static boolean |
TEMPLATE_VERBOSE
Deprecated. |
private String |
theClass
Deprecated. |
private String |
theMethod
Deprecated. |
private WTException |
theWTException
Deprecated. |
Constructor Summary | |
private |
ExceptionAction()
Deprecated. |
|
ExceptionAction(WTException aWTException)
Deprecated. |
|
ExceptionAction(WTException aWTException,
String aClass,
String aMethod)
Deprecated. |
Method Summary | |
void |
action(OutputStream out,
Object context,
Locale locale,
boolean includeLocale)
Deprecated. action writes the exception's stack trace to stdout and throws the exception for handling by other classes. |
String |
getClassName()
Deprecated. |
WTException |
getException()
Deprecated. |
String |
getMethodName()
Deprecated. |
void |
setClassName(String aClass)
Deprecated. |
void |
setException(WTException aWTException)
Deprecated. |
void |
setMethodName(String aMethod)
Deprecated. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private WTException theWTException
private String theClass
private String theMethod
private static final boolean TEMPLATE_VERBOSE
Constructor Detail |
private ExceptionAction()
public ExceptionAction(WTException aWTException)
public ExceptionAction(WTException aWTException, String aClass, String aMethod)
Method Detail |
public void action(OutputStream out, Object context, Locale locale, boolean includeLocale) throws WTException
action
in interface TemplateAction
out
- The OutputStream passed to the methodcontext
- The object instance to invoke the method on, or null if staticlocale
- The Locale passed to the methodincludeLocale
- A flag specifying whether to include locale in the parameters
WTException
public void setException(WTException aWTException)
public WTException getException()
public void setClassName(String aClass)
public String getClassName()
public void setMethodName(String aMethod)
public String getMethodName()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |