类 ExceptionHandler
java.lang.Object
top.codef.exceptionhandle.ExceptionHandler
-
构造器概要
构造器构造器说明ExceptionHandler(PrometheusProperties prometheusProperties, ExceptionNoticeProperties exceptionNoticeProperties, org.springframework.context.ApplicationEventPublisher applicationEventPublisher) -
方法概要
修饰符和类型方法说明createHttpNotice(String blameFor, Throwable exception, String url, Map<String, String> param, String requesBody, Map<String, String> headers) 创建一个http请求异常的通知createNotice(String blameFor, Throwable exception) createNotice(String blameFor, Throwable ex, String method, Object[] args) 反射方式获取方法中出现的异常进行的通知
-
构造器详细资料
-
ExceptionHandler
public ExceptionHandler(PrometheusProperties prometheusProperties, ExceptionNoticeProperties exceptionNoticeProperties, org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
-
-
方法详细资料
-
createNotice
-
createNotice
反射方式获取方法中出现的异常进行的通知- 参数:
ex- 异常信息method- 方法名args- 参数信息- 返回:
-
createHttpNotice
public HttpExceptionNotice createHttpNotice(String blameFor, Throwable exception, String url, Map<String, String> param, String requesBody, Map<String, String> headers) 创建一个http请求异常的通知- 参数:
exception-url-param-requesBody-headers-- 返回:
-