andrew4699 commented on code in PR #1105:
URL: https://github.com/apache/polaris/pull/1105#discussion_r1978428947


##########
service/common/src/main/java/org/apache/polaris/service/exception/IcebergExceptionMapper.java:
##########
@@ -166,12 +166,15 @@ public static Collection<String> getAccessDeniedHints() {
 
   static int mapExceptionToResponseCode(RuntimeException rex) {
     // Cloud exceptions
-    if (rex instanceof S3Exception
-        || rex instanceof AzureException
-        || rex instanceof StorageException) {
+    if (isCloudException(rex)) {
       return mapCloudExceptionToResponseCode(rex);
     }
 
+    Throwable rootCause = ExceptionUtils.getRootCause(rex);

Review Comment:
   Thanks for the reminder, updated!



##########
service/common/src/main/java/org/apache/polaris/service/exception/IcebergExceptionMapper.java:
##########
@@ -166,12 +166,15 @@ public static Collection<String> getAccessDeniedHints() {
 
   static int mapExceptionToResponseCode(RuntimeException rex) {
     // Cloud exceptions

Review Comment:
   Updated



-- 
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: issues-unsubscr...@polaris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to