Skip to content

Exceptions

All exceptions inherit from AweError, so you can catch everything with a single except AweError or target specific cases precisely.

AweError (base)
├── AweAuthError       — 401 / 403, or login() not called
├── AweNotFoundError   — 404
├── AweValidationError — 400
└── AweServerError     — 5xx

pyawe.exceptions.AweError

Bases: Exception

Base class for all pyawe exceptions.

pyawe.exceptions.AweAuthError

Bases: AweError

Raised on 401 responses or when :meth:AweClient.login has not been called.

pyawe.exceptions.AweNotFoundError

Bases: AweError

Raised on 404 responses.

pyawe.exceptions.AweValidationError

Bases: AweError

Raised on 400 responses.

pyawe.exceptions.AweServerError

Bases: AweError

Raised on 5xx responses.