thunderbird_accounts.core.exceptions

Functions

drf_exception_handler(exc, context)

Return safe JSON for exceptions raised by DRF API views.

Exceptions

UnexpectedBehaviour(message)

Raise when something weird happens, you should call sentry_sdk.set_context to give some context to the error

thunderbird_accounts.core.exceptions.drf_exception_handler(exc: Exception, context: dict) → Response | None[source]

Return safe JSON for exceptions raised by DRF API views.

exception thunderbird_accounts.core.exceptions.UnexpectedBehaviour(message: str)[source]

Bases: Exception

Raise when something weird happens, you should call sentry_sdk.set_context to give some context to the error

__init__(message: str)[source]