gov.grants.apply.struts
Class DefaultExceptionHandler

java.lang.Object
  extended byorg.apache.struts.action.ExceptionHandler
      extended bygov.grants.apply.struts.DefaultExceptionHandler
All Implemented Interfaces:
Constants

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

This is a default exception handler class.

Author:
Brian Husted

Field Summary
(package private) static org.apache.log4j.Logger log
           
 
Fields inherited from interface gov.grants.apply.struts.Constants
ACTION_CONTINUE, ACTION_FAILURE, ACTION_SUCCESS, APP_RECEIPT_DATE, APPLICATION_INFO, APPLICATION_XML, ATTACHMENTS, ERROR_DETAIL, GETOPPORTUNITY_LIST, GG_TRACKING_ID, SOAP_SERVER_PROPERTY_FILE, STATUS_DETAIL, XML_FILE_NAME
 
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)
           
 java.lang.String getErrorMsg(java.lang.Exception ex)
           
 
Methods inherited from class org.apache.struts.action.ExceptionHandler
storeException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

static final org.apache.log4j.Logger log
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
Throws:
javax.servlet.ServletException

getErrorMsg

public java.lang.String getErrorMsg(java.lang.Exception ex)
Parameters:
ex - the Exception.
Returns:
the string of the error message.