fix: 错误处理时参数类型不匹配

This commit is contained in:
Captain.B 2021-03-17 18:19:34 +08:00
parent b00a5a4fcd
commit 41f81dff5e
1 changed files with 1 additions and 1 deletions

View File

@ -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.");
}