⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 exceptionresolver.java

📁 MVC的实例
💻 JAVA
字号:
package com.javaeedev.lightweight.mvc;

import javax.servlet.ServletContext;
import javax.servlet.ServletException;

/**
 * Interface of exception resolver to handle exception.
 * 
 * @author Xuefeng
 */
public interface ExceptionResolver {

    /**
     * Do init work when servlet starts.
     * 
     * @param context ServletContext object.
     * @throws ServletException If init failed.
     */
    void init(ServletContext context) throws ServletException;

    /**
     * When exception thrown during action's execution.
     * 
     * @param action Action object.
     * @param e Exception instance.
     * @return ModelAndView object after handle this exception, or null if 
     *         no exception page to display to user.
     */
    ModelAndView handleException(Action action, Exception e) throws Exception;

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -