public class DefaultSpringBootApiExceptionRequestHandler extends Object implements SpringBootApiExceptionRequestHandler
| 构造器和说明 |
|---|
DefaultSpringBootApiExceptionRequestHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
handleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Throwable e)
Handle the request when api valid.
|
void |
logException(Throwable ex) |
public DefaultSpringBootApiExceptionRequestHandler()
public void handleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Throwable e)
throws IOException
SpringBootApiExceptionRequestHandlerhandleRequest 在接口中 SpringBootApiExceptionRequestHandlerrequest - Servlet requestresponse - Servlet responsee - the api valid exceptionIOException - users may throw out the ApiException or other error occurspublic void logException(Throwable ex)
Copyright © 2024. All rights reserved.