mirror of
https://gitee.com/wangkang/udf.git
synced 2026-10-28 13:13:55 +00:00
更新异常处理方式
This commit is contained in:
@@ -71,8 +71,6 @@ public class ExceptionHandle extends ResponseEntityExceptionHandler {
|
||||
} catch (IOException e) {
|
||||
throw new SystemRuntimeException(e);
|
||||
}
|
||||
} else { //未知异常
|
||||
localHttpStatus = HttpStatus.INTERNAL_SERVER_ERROR;
|
||||
}
|
||||
return super.handleExceptionInternal(ex, new RestResponse<>(status, errorResult), headers, localHttpStatus, request);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user