hdygxsj commented on code in PR #7971:
URL: https://github.com/apache/gravitino/pull/7971#discussion_r2265850603
##########
clients/client-java/src/main/java/org/apache/gravitino/client/ErrorHandlers.java:
##########
@@ -1085,6 +1085,9 @@ public ErrorResponse parseResponse(int code, String json,
ObjectMapper mapper) {
@Override
public void accept(ErrorResponse errorResponse) {
+ if (errorResponse.getCode() == ErrorConstants.FORBIDDEN_CODE) {
Review Comment:
We need to convert 403 into a specific Exception instead of using
RuntimeException, otherwise, throwing exceptions due to non-403 errors might
cause the IT to fail to achieve the expected results.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]