granite_assets.exceptions
All exceptions raised by granite-assets derive from AssetError,
so you can catch the base class for general handling and subclasses for specific cases.
Exceptions raised by granite-assets repositories.
- exception granite_assets.exceptions.AssetError[source]
Bases:
ExceptionBase exception for all granite-assets errors.
- exception granite_assets.exceptions.AssetNotFoundError(key: str)[source]
Bases:
AssetErrorRaised when an asset key does not exist in the repository.
- exception granite_assets.exceptions.AssetAccessNotSupportedError(backend: str, operation: str)[source]
Bases:
AssetErrorRaised when the requested URL type is not supported by this backend.
For example,
build_upload_urlon a local-nginx repository will raise this because there is no built-in mechanism to generate a pre-signed upload endpoint from a plain filesystem.
- exception granite_assets.exceptions.AssetConfigurationError[source]
Bases:
AssetErrorRaised when a repository is misconfigured (missing field, bad value, etc.).