Class ExceptionUtils
java.lang.Object
org.apache.polaris.service.catalog.common.ExceptionUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic RuntimeExceptionalreadyExistsExceptionForTableLikeEntity(String identifier, org.apache.polaris.core.entity.PolarisEntitySubType subType) static RuntimeExceptionalreadyExistsExceptionForTableLikeEntity(org.apache.iceberg.catalog.TableIdentifier identifier, org.apache.polaris.core.entity.PolarisEntitySubType subType) static RuntimeExceptionalreadyExistsExceptionWithSameNameForTableLikeEntity(org.apache.iceberg.catalog.TableIdentifier identifier, org.apache.polaris.core.entity.PolarisEntitySubType subType) static StringentityNameForSubType(org.apache.polaris.core.entity.PolarisEntitySubType subType) static org.apache.iceberg.exceptions.NoSuchNamespaceExceptionnoSuchNamespaceException(org.apache.iceberg.catalog.Namespace namespace) static org.apache.iceberg.exceptions.NoSuchNamespaceExceptionnoSuchNamespaceException(org.apache.iceberg.catalog.TableIdentifier identifier) static RuntimeExceptionnotFoundExceptionForTableLikeEntity(String identifier, org.apache.polaris.core.entity.PolarisEntitySubType subType) static RuntimeExceptionnotFoundExceptionForTableLikeEntity(org.apache.iceberg.catalog.TableIdentifier identifier, List<org.apache.polaris.core.entity.PolarisEntitySubType> subTypes) Helper function for when a TABLE_LIKE entity is not found, so we want to throw the appropriate exception.static RuntimeExceptionnotFoundExceptionForTableLikeEntity(org.apache.iceberg.catalog.TableIdentifier identifier, org.apache.polaris.core.entity.PolarisEntitySubType subType)
-
Method Details
-
notFoundExceptionForTableLikeEntity
public static RuntimeException notFoundExceptionForTableLikeEntity(org.apache.iceberg.catalog.TableIdentifier identifier, List<org.apache.polaris.core.entity.PolarisEntitySubType> subTypes) Helper function for when a TABLE_LIKE entity is not found, so we want to throw the appropriate exception. Used in Iceberg APIs, so the Iceberg messages cannot be changed.- Parameters:
subTypes- The subtypes of the entity that the exception should report as non-existing
-
notFoundExceptionForTableLikeEntity
public static RuntimeException notFoundExceptionForTableLikeEntity(org.apache.iceberg.catalog.TableIdentifier identifier, org.apache.polaris.core.entity.PolarisEntitySubType subType) -
notFoundExceptionForTableLikeEntity
public static RuntimeException notFoundExceptionForTableLikeEntity(String identifier, org.apache.polaris.core.entity.PolarisEntitySubType subType) -
alreadyExistsExceptionForTableLikeEntity
public static RuntimeException alreadyExistsExceptionForTableLikeEntity(org.apache.iceberg.catalog.TableIdentifier identifier, org.apache.polaris.core.entity.PolarisEntitySubType subType) -
alreadyExistsExceptionForTableLikeEntity
public static RuntimeException alreadyExistsExceptionForTableLikeEntity(String identifier, org.apache.polaris.core.entity.PolarisEntitySubType subType) -
alreadyExistsExceptionWithSameNameForTableLikeEntity
public static RuntimeException alreadyExistsExceptionWithSameNameForTableLikeEntity(org.apache.iceberg.catalog.TableIdentifier identifier, org.apache.polaris.core.entity.PolarisEntitySubType subType) -
entityNameForSubType
public static String entityNameForSubType(org.apache.polaris.core.entity.PolarisEntitySubType subType) -
noSuchNamespaceException
public static org.apache.iceberg.exceptions.NoSuchNamespaceException noSuchNamespaceException(org.apache.iceberg.catalog.TableIdentifier identifier) -
noSuchNamespaceException
public static org.apache.iceberg.exceptions.NoSuchNamespaceException noSuchNamespaceException(org.apache.iceberg.catalog.Namespace namespace)
-