Source code for django_registration.exceptions

"""
Exception classes used in registration workflows.

"""

# SPDX-License-Identifier: BSD-3-Clause


[docs] class RegistrationError(Exception): """ Base class for registration errors. """ def __init__(self, message, code=None, params=None): super().__init__(message, code, params) self.message = message self.code = code self.params = params
[docs] class ActivationError(RegistrationError): """ Base class for account-activation errors. """