📄 appexceptionhandler.java
字号:
package com.comm;
import javax.servlet.*;
import javax.servlet.http.*;
import org.apache.struts.action.*;
import org.apache.struts.config.*;
public class AppExceptionHandler extends ExceptionHandler {
public AppExceptionHandler() {
}
public ActionForward execute(Exception ex,
ExceptionConfig ae,
ActionMapping mapping,
ActionForm formInstance,
HttpServletRequest request,
HttpServletResponse response) throws
ServletException {
request.setAttribute("DESCRIPTION", (new AppException(ex)).getDesc());
return mapping.findForward("gFailure");
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -