Exception classes¶
django-registration provides two base exception classes to signal errors
which occur during the signup or activation processes.
- exception django_registration.exceptions.RegistrationError(message, code, params)[source]¶
Base exception class for all exceptions raised in
django-registration. No code indjango-registrationwill raise this exception directly; it serves solely to provide a distinguishing parent class for other errors. Arguments passed when the exception is raised will be stored and exposed as attributes of the same names on the exception object:
- exception django_registration.exceptions.ActivationError(message, code, params)[source]¶
Exception class to indicate errors during account activation. Subclass of
RegistrationErrorand inherits its attributes.