You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "manuzhang (via GitHub)" <gi...@apache.org> on 2026/01/21 08:56:55 UTC

Re: [PR] Core: Adding additional information in RestException [iceberg]

manuzhang commented on code in PR #14927:
URL: https://github.com/apache/iceberg/pull/14927#discussion_r2711578325


##########
core/src/main/java/org/apache/iceberg/rest/ErrorHandlers.java:
##########
@@ -297,7 +297,9 @@ public void accept(ErrorResponse error) {
           throw new ServiceUnavailableException("Service unavailable: %s", error.message());
       }
 
-      throw new RESTException("Unable to process: %s", error.message());
+      throw new RESTException(

Review Comment:
   Is it possible to add a constructor passing in `error` such that we don't need to repeat the same error message everywhere?



-- 
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-unsubscribe@iceberg.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org