exceptions#
TopLevelValidationError#
Bases: APIException
Validation error that is raised to top level instead of serializer trying to gather all errors.
Useful when same error output is desired outside serialization and e.g. in a nested serializer.
Source code in src/apps/common/exceptions.py
exception_handler#
Handler for DRF exceptions.