Skip to content

Exceptions

exc

Exception definitions for the extension.

Hierarchy:

  • Exception
    • FilesError
      • QueueError
        • OutOfQueueError
      • StorageError
        • UnknownAdapterError
        • UnknownStorageError
        • UnsupportedOperationError
        • PermissionError
        • MissingFileError
        • ExistingFileError
        • ExtrasError
          • MissingExtrasError
        • InvalidStorageConfigurationError
          • MissingStorageConfigurationError
        • UploadError
          • WrongUploadTypeError
          • NameStrategyError
          • ContentError
          • LargeUploadError
            • UploadOutOfBoundError
          • UploadMismatchError
            • UploadTypeMismatchError
            • UploadHashMismatchError
            • UploadSizeMismatchError

ContentError

Bases: UploadError

Storage cannot accept uploaded content.

ExistingFileError

Bases: StorageError

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

Storage cannot be initialized due to missing option.

MissingExtrasError

Bases: ExtrasError

Wrong extras passed to storage method.

MissingFileError

Bases: StorageError

File does not exist.

MissingStorageConfigurationError

Bases: InvalidStorageConfigurationError

Storage cannot be initialized due to missing option.

NameStrategyError

Bases: UploadError

Undefined name strategy.

OutOfQueueError

Bases: QueueError

Attempt to add task without initializing task queue context.

PermissionError

Bases: StorageError

Storage client does not have required permissions.

QueueError

Bases: FilesError

Error related to task queue.

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

Multipart 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.