01: /*
02: * Copyright (c) 2005 Your Corporation. All Rights Reserved.
03: */
04: package com.technoetic.xplanner.actions;
05:
06: import javax.servlet.http.HttpServletRequest;
07:
08: import org.apache.struts.action.ActionError;
09: import org.apache.struts.action.ActionForward;
10: import org.apache.struts.Globals;
11: import org.apache.log4j.Logger;
12:
13: import com.technoetic.xplanner.util.LogUtil;
14:
15: public class ExceptionHandler extends
16: org.apache.struts.action.ExceptionHandler {
17: protected static final Logger LOG = LogUtil.getLogger();
18:
19: protected void storeException(HttpServletRequest request,
20: String property, ActionError error, ActionForward forward,
21: String scope) {
22: Throwable exception = (Throwable) request
23: .getAttribute(Globals.EXCEPTION_KEY);
24: LOG.warn("Uncaught exception", exception);
25: super.storeException(request, property, error, forward, scope);
26: }
27: }
|