Skip to content

exceptions

AuthorizationExpiredError

Bases: RESTError

When the credentials are expired when performing an action on the REST catalog.

Source code in pyiceberg/exceptions.py
class AuthorizationExpiredError(RESTError):
    """When the credentials are expired when performing an action on the REST catalog."""

BadRequestError

Bases: RESTError

Raises when an invalid request is being made.

Source code in pyiceberg/exceptions.py
class BadRequestError(RESTError):
    """Raises when an invalid request is being made."""

CommitFailedException

Bases: Exception

Commit failed, refresh and try again.

Source code in pyiceberg/exceptions.py
class CommitFailedException(Exception):
    """Commit failed, refresh and try again."""

CommitStateUnknownException

Bases: RESTError

Commit failed due to unknown reason.

Source code in pyiceberg/exceptions.py
class CommitStateUnknownException(RESTError):
    """Commit failed due to unknown reason."""

ForbiddenError

Bases: RESTError

Raises when you don't have the credentials to perform the action on the REST catalog.

Source code in pyiceberg/exceptions.py
class ForbiddenError(RESTError):
    """Raises when you don't have the credentials to perform the action on the REST catalog."""

NamespaceAlreadyExistsError

Bases: Exception

Raised when a name-space being created already exists in the catalog.

Source code in pyiceberg/exceptions.py
class NamespaceAlreadyExistsError(Exception):
    """Raised when a name-space being created already exists in the catalog."""

NamespaceNotEmptyError

Bases: Exception

Raised when a name-space being dropped is not empty.

Source code in pyiceberg/exceptions.py
class NamespaceNotEmptyError(Exception):
    """Raised when a name-space being dropped is not empty."""

NoSuchIcebergTableError

Bases: NoSuchTableError

Raises when the table found in the REST catalog is not an iceberg table.

Source code in pyiceberg/exceptions.py
class NoSuchIcebergTableError(NoSuchTableError):
    """Raises when the table found in the REST catalog is not an iceberg table."""

NoSuchIdentifierError

Bases: Exception

Raises when the identifier can't be found in the REST catalog.

Source code in pyiceberg/exceptions.py
class NoSuchIdentifierError(Exception):
    """Raises when the identifier can't be found in the REST catalog."""

NoSuchNamespaceError

Bases: Exception

Raised when a referenced name-space is not found.

Source code in pyiceberg/exceptions.py
class NoSuchNamespaceError(Exception):
    """Raised when a referenced name-space is not found."""

NoSuchPropertyException

Bases: Exception

When a property is missing.

Source code in pyiceberg/exceptions.py
class NoSuchPropertyException(Exception):
    """When a property is missing."""

NoSuchTableError

Bases: Exception

Raises when the table can't be found in the REST catalog.

Source code in pyiceberg/exceptions.py
class NoSuchTableError(Exception):
    """Raises when the table can't be found in the REST catalog."""

NoSuchViewError

Bases: Exception

Raises when the view can't be found in the REST catalog.

Source code in pyiceberg/exceptions.py
class NoSuchViewError(Exception):
    """Raises when the view can't be found in the REST catalog."""

NotInstalledError

Bases: Exception

When an optional dependency is not installed.

Source code in pyiceberg/exceptions.py
class NotInstalledError(Exception):
    """When an optional dependency is not installed."""

OAuthError

Bases: RESTError

Raises when there is an error with the OAuth call.

Source code in pyiceberg/exceptions.py
class OAuthError(RESTError):
    """Raises when there is an error with the OAuth call."""

RESTError

Bases: Exception

Raises when there is an unknown response from the REST Catalog.

Source code in pyiceberg/exceptions.py
class RESTError(Exception):
    """Raises when there is an unknown response from the REST Catalog."""

ServerError

Bases: RESTError

Raises when there is an unhandled exception on the server side.

Source code in pyiceberg/exceptions.py
class ServerError(RESTError):
    """Raises when there is an unhandled exception on the server side."""

ServiceUnavailableError

Bases: RESTError

Raises when the service doesn't respond.

Source code in pyiceberg/exceptions.py
class ServiceUnavailableError(RESTError):
    """Raises when the service doesn't respond."""

SignError

Bases: Exception

Raises when unable to sign a S3 request.

Source code in pyiceberg/exceptions.py
class SignError(Exception):
    """Raises when unable to sign a S3 request."""

TableAlreadyExistsError

Bases: Exception

Raised when creating a table with a name that already exists.

Source code in pyiceberg/exceptions.py
class TableAlreadyExistsError(Exception):
    """Raised when creating a table with a name that already exists."""

UnauthorizedError

Bases: RESTError

Raises when you don't have the proper authorization.

Source code in pyiceberg/exceptions.py
class UnauthorizedError(RESTError):
    """Raises when you don't have the proper authorization."""

ValidationError

Bases: Exception

Raises when there is an issue with the schema.

Source code in pyiceberg/exceptions.py
class ValidationError(Exception):
    """Raises when there is an issue with the schema."""

WaitingForLockException

Bases: Exception

Need to wait for a lock, try again.

Source code in pyiceberg/exceptions.py
class WaitingForLockException(Exception):
    """Need to wait for a lock, try again."""