We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
以下的实例比较局限
@ExceptionHandler(NullPointerException.class) public Json nullPointer(NullPointerException exception) { log.error("Null Pointer occurred", exception); final StackTraceElement[] stackTrace = exception.getStackTrace(); if (ObjectUtils.isNotEmpty(stackTrace)) { return Json.failed("空指针", stackTrace[0]); } return Json.failed("空指针", "暂无堆栈信息"); }
如果可以直接声明接口,在多个异常实现了该接口之后就可以被处理
The text was updated successfully, but these errors were encountered:
TAKETODAY
No branches or pull requests
以下的实例比较局限
如果可以直接声明接口,在多个异常实现了该接口之后就可以被处理
The text was updated successfully, but these errors were encountered: