Class ExceptionUtils

java.lang.Object
org.apache.polaris.service.catalog.common.ExceptionUtils

public class ExceptionUtils extends Object
  • 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)