diff options
Diffstat (limited to 'Mailman/Errors.py')
| -rw-r--r-- | Mailman/Errors.py | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Mailman/Errors.py b/Mailman/Errors.py index 10081f08d..6b5abac5a 100644 --- a/Mailman/Errors.py +++ b/Mailman/Errors.py @@ -212,3 +212,33 @@ class BadPasswordSchemeError(PasswordError): def __str__(self): return 'A bad password scheme was given: %s' % self.scheme_name + + + +class UserError(MailmanError): + """A general user-related error occurred.""" + + +class RosterError(UserError): + """A roster-related error occurred.""" + + +class RosterExistsError(RosterError): + """The named roster already exists.""" + + + +class AddressError(MailmanError): + """A general address-related error occurred.""" + + +class ExistingAddressError(AddressError): + """The given email address already exists.""" + + +class AddressAlreadyLinkedError(AddressError): + """The address is already linked to a user.""" + + +class AddressNotLinkedError(AddressError): + """The address is not linked to the user.""" |
