adutra commented on code in PR #2531:
URL: https://github.com/apache/polaris/pull/2531#discussion_r2336263255
##########
runtime/service/src/main/java/org/apache/polaris/service/exception/IcebergExceptionMapper.java:
##########
@@ -261,8 +262,12 @@ static Optional<Integer>
mapCloudExceptionToResponseCode(Throwable t) {
return Optional.of(Status.INTERNAL_SERVER_ERROR.getStatusCode());
}
+ /**
+ * This function is only present for the {@code ExceptionMapperTest} and
must only be used during
+ * once any execution of {@link #toResponse(RuntimeException)}.
Review Comment:
```suggestion
* This function is only present for the {@code ExceptionMapperTest} and
must only be used once
* during any execution of {@link #toResponse(RuntimeException)}.
```
--
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]