Class ExceptionEventListener.ExceptionWrapper
java.lang.Object
tech.riemann.nif.starter.exception.event.ExceptionEventListener.ExceptionWrapper
- Enclosing class:
ExceptionEventListener
异常包装类
用于封装异常的详细信息,便于监听器处理
包含的信息: - type:异常类型的完整类名 - stackTrace:异常堆栈信息 - code:HTTP状态码 - message:异常消息
- Author:
- kerbores(kerbores@riemann.tech)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription从异常对象创建ExceptionWrapper实例
-
Constructor Details
-
ExceptionWrapper
public ExceptionWrapper()
-
-
Method Details
-
from
从异常对象创建ExceptionWrapper实例自动识别异常类型并设置对应的HTTP状态码
- Parameters:
e- 异常对象- Returns:
- ExceptionWrapper实例
-