django-registration provides two base exception classes to signal errors which occur during the signup or activation processes.
RegistrationError(message, code, params)¶
Base exception class for all exceptions raised in django-registration. No code in django-registration will 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: