org.kuali.rice.kns.web.struts.action
Class KualiExceptionHandlerAction

java.lang.Object
  extended by org.apache.struts.action.Action
      extended by org.kuali.rice.kns.web.struts.action.KualiExceptionHandlerAction

public class KualiExceptionHandlerAction
extends org.apache.struts.action.Action

This is the struts action class for handling the exception for Kuali applications.


Field Summary
 
Fields inherited from class org.apache.struts.action.Action
servlet
 
Constructor Summary
KualiExceptionHandlerAction()
           
 
Method Summary
 org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          This overridden method dispatches action to be taken based on "methodToCall" parameter.
 org.apache.struts.action.ActionForward executeException(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          This overridden method processes the exception and post exception (when user either submit/cancel the exception JSP page).
protected  org.apache.struts.action.ActionForward processException(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, Exception exception)
          This method process the caught exception by creating an exception information properties list and forward these properties to the exception incident handler JSP.
 
Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KualiExceptionHandlerAction

public KualiExceptionHandlerAction()
Method Detail

execute

public org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping,
                                                      org.apache.struts.action.ActionForm form,
                                                      javax.servlet.http.HttpServletRequest request,
                                                      javax.servlet.http.HttpServletResponse response)
                                               throws Exception
This overridden method dispatches action to be taken based on "methodToCall" parameter. The exception is processed when there is no "methodToCall" specified.

Overrides:
execute in class org.apache.struts.action.Action
Throws:
Exception
See Also:
Action.execute(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)

executeException

public org.apache.struts.action.ActionForward executeException(org.apache.struts.action.ActionMapping mapping,
                                                               org.apache.struts.action.ActionForm form,
                                                               javax.servlet.http.HttpServletRequest request,
                                                               javax.servlet.http.HttpServletResponse response)
                                                        throws Exception
This overridden method processes the exception and post exception (when user either submit/cancel the exception JSP page).

Throws:
Exception
See Also:
Action.execute(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)

processException

protected org.apache.struts.action.ActionForward processException(org.apache.struts.action.ActionMapping mapping,
                                                                  org.apache.struts.action.ActionForm form,
                                                                  javax.servlet.http.HttpServletRequest request,
                                                                  Exception exception)
                                                           throws Exception
This method process the caught exception by creating an exception information properties list and forward these properties to the exception incident handler JSP.

Parameters:
exception -
mapping -
request -
documentId - Id of the document that Struts threw exception during its processing. null if not the document processing that caused the exception
Returns:
Throws:
Exception


Copyright © 2005-2014 The Kuali Foundation. All Rights Reserved.