rdblue commented on code in PR #10929: URL: https://github.com/apache/iceberg/pull/10929#discussion_r1715635197
########## core/src/main/java/org/apache/iceberg/rest/RESTSessionCatalog.java: ########## @@ -352,8 +386,17 @@ public boolean dropTable(SessionContext context, TableIdentifier identifier) { } } + private void checkEndpointSupported(Endpoint endpoint) { + Preconditions.checkState( Review Comment: Why not throw `UnsupportedOperationException` in the general case? That's what we throw for 501: https://github.com/apache/iceberg/blob/main/core/src/main/java/org/apache/iceberg/rest/ErrorHandlers.java#L218-L219 -- 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...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org