From 4de685545581649b2b59ea638eec86b550a72c03 Mon Sep 17 00:00:00 2001 From: Difei Zhang Date: Fri, 20 Dec 2024 12:39:23 +1300 Subject: [PATCH] Don't throw different exceptions --- .../apache/polaris/service/catalog/BasePolarisCatalog.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/service/common/src/main/java/org/apache/polaris/service/catalog/BasePolarisCatalog.java b/service/common/src/main/java/org/apache/polaris/service/catalog/BasePolarisCatalog.java index 599a08153..3b0177f8e 100644 --- a/service/common/src/main/java/org/apache/polaris/service/catalog/BasePolarisCatalog.java +++ b/service/common/src/main/java/org/apache/polaris/service/catalog/BasePolarisCatalog.java @@ -560,9 +560,6 @@ private String resolveNamespaceLocation(Namespace namespace, Map LOGGER.warn( "Tried to resolve location with catalog with null defalut base location. Catalog = {}", catEntity); - throw new RuntimeException( - "Tried to resolve location with catalog with null defalut base location. Catalog = " - + catEntity); } return catalogDefaultBaseLocation; } else { @@ -576,9 +573,6 @@ private String resolveNamespaceLocation(Namespace namespace, Map LOGGER.warn( "Tried to resolve location with entity without base location or name. entity = {}", entity); - throw new RuntimeException( - "Tried to resolve location with entity without base location or name. entity = " - + entity); } return entityName; }