"""Exception classes used in registration workflows."""# SPDX-License-Identifier: BSD-3-Clause
[docs]classRegistrationError(Exception):""" Base class for registration errors. """def__init__(self,message,code=None,params=None):super().__init__(message,code,params)self.message=messageself.code=codeself.params=params
[docs]classActivationError(RegistrationError):""" Base class for account-activation errors. """