org.kuali.rice.kew.web
Class StrutsExceptionHandler

java.lang.Object
  extended by org.apache.struts.action.ExceptionHandler
      extended by org.kuali.rice.kew.web.StrutsExceptionHandler

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

Catches exceptions throw from Workflow Actions If exception is of type WorkflowServiceErrorException any WorkflowServiceErrors saved on the exception are stripped off of the exception put into ActionMessages in the Error que and the request is directed back to the original ActionMapping input page. Other exceptions are logged and directed to the mapped jsp according to the exception handler mapping.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
StrutsExceptionHandler()
           
 
Method Summary
 org.apache.struts.action.ActionForward execute(java.lang.Exception e, org.apache.struts.config.ExceptionConfig exceptionConfig, org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
protected  void saveServiceErrors(java.util.Collection srvErrors, javax.servlet.http.HttpServletRequest request)
           
protected  void saveServiceErrors(java.lang.String key, java.lang.Exception e, javax.servlet.http.HttpServletRequest request)
           
 
Methods inherited from class org.apache.struts.action.ExceptionHandler
logException, storeException, storeException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StrutsExceptionHandler

public StrutsExceptionHandler()
Method Detail

execute

public org.apache.struts.action.ActionForward execute(java.lang.Exception e,
                                                      org.apache.struts.config.ExceptionConfig exceptionConfig,
                                                      org.apache.struts.action.ActionMapping mapping,
                                                      org.apache.struts.action.ActionForm form,
                                                      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

saveServiceErrors

protected void saveServiceErrors(java.util.Collection srvErrors,
                                 javax.servlet.http.HttpServletRequest request)

saveServiceErrors

protected void saveServiceErrors(java.lang.String key,
                                 java.lang.Exception e,
                                 javax.servlet.http.HttpServletRequest request)


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.