fix: 错误处理时参数类型不匹配
This commit is contained in:
parent
b00a5a4fcd
commit
41f81dff5e
|
@ -32,7 +32,7 @@ public class RestControllerExceptionHandler {
|
|||
|
||||
|
||||
@ExceptionHandler(SQLException.class)
|
||||
public ResultHolder sqlExceptionHandler(HttpServletRequest request, HttpServletResponse response, MSException e) {
|
||||
public ResultHolder sqlExceptionHandler(HttpServletRequest request, HttpServletResponse response, SQLException e) {
|
||||
response.setStatus(HttpStatus.INTERNAL_SERVER_ERROR.value());
|
||||
return ResultHolder.error("SQL error happened, please check logs.");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue