laserninja commented on code in PR #10668:
URL: https://github.com/apache/gravitino/pull/10668#discussion_r3036462870
##########
iceberg/iceberg-rest-server/src/main/java/org/apache/gravitino/iceberg/service/IcebergRESTUtils.java:
##########
@@ -61,10 +82,11 @@ public static Response notExists() {
}
public static Response errorResponse(Throwable ex, int httpStatus) {
+ String type = ERROR_TYPE_NAMES.getOrDefault(httpStatus,
ex.getClass().getSimpleName());
Review Comment:
Removed `ERROR_TYPE_NAMES` from `IcebergRESTUtils`, exception-to-type
resolution is now handled entirely through `convertToIcebergException()`
--
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]