org.scrashmeow.ojb.console.framework
Class RepositoryExceptionHander

java.lang.Object
  |
  +--org.apache.struts.action.ExceptionHandler
        |
        +--org.scrashmeow.ojb.console.framework.RepositoryExceptionHander

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

The exception handler for the struts controller when an Exception is thrown out of the controller layer. This global exception handler forwards to a generic error page while ensuring the exception is available to the JSP error page.

Author:
alexander

Constructor Summary
RepositoryExceptionHander()
           
 
Method Summary
 org.apache.struts.action.ActionForward execute(java.lang.Exception ex, org.apache.struts.config.ExceptionConfig excfg, org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, HttpServletResponse response)
          Handle the exception
 
Methods inherited from class org.apache.struts.action.ExceptionHandler
execute, storeException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepositoryExceptionHander

public RepositoryExceptionHander()
Method Detail

execute

public org.apache.struts.action.ActionForward execute(java.lang.Exception ex,
                                                      org.apache.struts.config.ExceptionConfig excfg,
                                                      org.apache.struts.action.ActionMapping mapping,
                                                      org.apache.struts.action.ActionForm form,
                                                      HttpServletRequest request,
                                                      HttpServletResponse response)
                                               throws ServletException
Handle the exception

Overrides:
execute in class org.apache.struts.action.ExceptionHandler
Parameters:
ex - the Exception
excfg - the ExceptionConfig
mapping - the ActionMapping
form - the ActionForm
request - the HttpServletRequest
response - the HttpServletResponse
Returns:
the ActionForward
Throws:
ServletException - if a servlet error occurs


Copyright © 2003 Alexander Bibighaus et al. All Rights Reserved.