Phillippko commented on code in PR #3671: URL: https://github.com/apache/ignite-3/pull/3671#discussion_r1583119669
########## modules/rest-api/src/main/java/org/apache/ignite/internal/rest/exception/handler/IgniteInternalExceptionHandler.java: ########## @@ -37,9 +38,11 @@ public class IgniteInternalExceptionHandler implements ExceptionHandler<IgniteIn @Override public HttpResponse<? extends Problem> handle(HttpRequest request, IgniteInternalException exception) { - if (exception.code() == DistributionZones.ZONE_NOT_FOUND_ERR) { + if (exception.code() == DistributionZones.ZONE_NOT_FOUND_ERR Review Comment: Error codes are not actually constant (result of `.registerErrorCode`) , can't be used in switch :( -- 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: notifications-unsubscr...@ignite.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org