Skip to content

angee.storage.exceptions

Upload-flow errors raised at the storage API boundary.

Raised by the file creation factory and byte-flow methods (File.objects.draft, File.receive_bytes / File.finalize) and translated by the thin transport wrappers: the proxy view maps :attr:UploadError.status_code to an HTTP status, the GraphQL mutations map :attr:UploadError.code to a payload error_code.

UploadError

python
class UploadError(Exception)

Common parent for upload-flow errors raised at the API boundary.

status_code

HTTP status the proxy view answers with.

code

Stable machine-readable code carried on GraphQL error payloads.

UploadDenied

python
class UploadDenied(UploadError)

The actor may not perform this upload step.

UploadTargetNotFound

python
class UploadTargetNotFound(UploadError)

A drive, folder, or file addressed by the request does not exist.

UploadConflict

python
class UploadConflict(UploadError)

The upload contradicts persisted state (dedup race, bad bytes, replay).

UploadTooLarge

python
class UploadTooLarge(UploadError)

The proxied body exceeds the configured byte cap.

Released under the AGPL-3.0 License.