Exceptions¶
All exceptions inherit from ComadError, so you can catch everything with a single except ComadError or target specific cases precisely.
ComadError (base)
├── ComadAuthError — 401 / 403, or login() not called
├── ComadNotFoundError — 404
├── ComadValidationError — 400
└── ComadServerError — 5xx
pycomad.exceptions.ComadError
¶
Bases: Exception
Base class for all pycomad exceptions.
pycomad.exceptions.ComadAuthError
¶
Bases: ComadError
Raised on 401 / 403 responses or when :meth:ComadClient.login has not been called.
pycomad.exceptions.ComadNotFoundError
¶
Bases: ComadError
Raised on 404 responses.
pycomad.exceptions.ComadValidationError
¶
Bases: ComadError
Raised on 400 responses.
pycomad.exceptions.ComadServerError
¶
Bases: ComadError
Raised on 5xx responses.