Anyframe Web

anyframe.web.struts.util
Class DefaultExceptionHandler

java.lang.Object
  extended by org.apache.struts.action.ExceptionHandler
      extended by anyframe.web.struts.util.DefaultExceptionHandler

public class DefaultExceptionHandler
extends org.apache.struts.action.ExceptionHandler

An ExceptionHandler is configured in the Struts configuration file to handle a specific type of exception thrown by an Action.execute method.

Author:
Byunghun Woo

Field Summary
 
Fields inherited from class org.apache.struts.action.ExceptionHandler
INCLUDE_PATH, SILENT_IF_COMMITTED
 
Constructor Summary
DefaultExceptionHandler()
           
 
Method Summary
 org.apache.struts.action.ActionForward execute(java.lang.Exception ex, org.apache.struts.config.ExceptionConfig ae, org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm formInstance, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
protected  void logException(java.lang.String message, java.lang.Exception e)
           Logs the Exception using commons-logging.
protected  void storeException(javax.servlet.http.HttpServletRequest request, java.lang.String property, org.apache.struts.action.ActionMessage message, org.apache.struts.action.ActionForward forward, java.lang.String scope)
           
 
Methods inherited from class org.apache.struts.action.ExceptionHandler
determineIncludePath, handleCommittedResponse, logException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultExceptionHandler

public DefaultExceptionHandler()
Method Detail

execute

public org.apache.struts.action.ActionForward execute(java.lang.Exception ex,
                                                      org.apache.struts.config.ExceptionConfig ae,
                                                      org.apache.struts.action.ActionMapping mapping,
                                                      org.apache.struts.action.ActionForm formInstance,
                                                      javax.servlet.http.HttpServletRequest request,
                                                      javax.servlet.http.HttpServletResponse response)
                                               throws javax.servlet.ServletException
Overrides:
execute in class org.apache.struts.action.ExceptionHandler
Throws:
javax.servlet.ServletException

storeException

protected void storeException(javax.servlet.http.HttpServletRequest request,
                              java.lang.String property,
                              org.apache.struts.action.ActionMessage message,
                              org.apache.struts.action.ActionForward forward,
                              java.lang.String scope)
Overrides:
storeException in class org.apache.struts.action.ExceptionHandler

logException

protected void logException(java.lang.String message,
                            java.lang.Exception e)

Logs the Exception using commons-logging.

Parameters:
e - The Exception to log.
Since:
Struts 1.2

Anyframe Web

Copyright © 2008-2009 Samsung SDS. All Rights Reserved.