This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
k18-ntcs-web-argus-service/src/main/java/com/nis/restful/RestErrorResolver.java
zhangdongxu 13acafd43d 上传代码
2017-12-19 14:55:52 +08:00

30 lines
730 B
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* @Title: RestErrorResolver.java
* @Package com.nis.restful
* @Description: TODO(用一句话描述该文件做什么)
* @author darnell
* @date 2016年8月24日 上午11:35:18
* @version V1.0
*/
package com.nis.restful;
import javax.servlet.http.HttpServletRequest;
/**
* @ClassName: RestErrorResolver
* @Description: TODO(异常和错误对象的转换接口)
* @author (darnell)
* @date 2016年8月24日 上午11:35:18
* @version V1.0
*/
public interface RestErrorResolver {
/**
*
* @param request 请求
* @param handler 处理方法
* @param ex 异常
* @return
*/
RestResult resolveError(HttpServletRequest request, Object handler, Exception ex);
}