Skip to content

Exceptions

exc

Exception definitions for the extension.

Hierarchy:

ContentError

Bases: UploadError

Storage cannot accept uploaded content.

ExistingFileError

Bases: LocationError

File already exists.

ExtrasError

Bases: StorageError

Wrong extras passed during upload.

FilesError

Bases: Exception

Base error for catch-all scenario.

InvalidStorageConfigurationError

Bases: StorageError

Storage cannot be initialized with given configuration.

LargeUploadError

Bases: UploadError

Planned upload exceeds allowed size.

LocationError

Bases: StorageError

Storage cannot use given location.

LocationTransformerError

Bases: UploadError

Undefined location transformer.

MissingExtrasError

Bases: ExtrasError

Wrong extras passed to storage method.

MissingFileError

Bases: LocationError

File does not exist.

MissingStorageConfigurationError

Bases: InvalidStorageConfigurationError

Storage cannot be initialized due to missing option.

PermissionError

Bases: StorageError

Storage client does not have required permissions.

StorageError

Bases: FilesError

Error related to storage.

UnknownAdapterError

Bases: StorageError

Specified storage adapter is not registered.

UnknownStorageError

Bases: StorageError

Storage with the given name is not configured.

UnsupportedOperationError

Bases: StorageError

Requested operation is not supported by storage.

UploadError

Bases: StorageError

Error related to file upload process.

UploadHashMismatchError

Bases: UploadMismatchError

Expected value of hash match the actual value.

UploadMismatchError

Bases: UploadError

Expected value of file attribute doesn't match the actual value.

UploadOutOfBoundError

Bases: LargeUploadError

Ongoing upload exceeds expected size.

UploadSizeMismatchError

Bases: UploadMismatchError

Expected value of upload size doesn't match the actual value.

UploadTypeMismatchError

Bases: UploadMismatchError

Expected value of content type doesn't match the actual value.

WrongUploadTypeError

Bases: UploadError

Storage does not support given MIMEType.