diff options
| author | Barry Warsaw | 2008-09-26 21:21:47 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2008-09-26 21:21:47 -0400 |
| commit | 4600557c49f2259925dca45b302b2a78629b0b38 (patch) | |
| tree | b46813032dab87bda6ce8ffc1a867e6505050d93 /mailman/core/errors.py | |
| parent | b6eff15e7d34e60e0fa9f13b5e944d73bf499414 (diff) | |
| download | mailman-4600557c49f2259925dca45b302b2a78629b0b38.tar.gz mailman-4600557c49f2259925dca45b302b2a78629b0b38.tar.zst mailman-4600557c49f2259925dca45b302b2a78629b0b38.zip | |
Diffstat (limited to 'mailman/core/errors.py')
| -rw-r--r-- | mailman/core/errors.py | 55 |
1 files changed, 1 insertions, 54 deletions
diff --git a/mailman/core/errors.py b/mailman/core/errors.py index 91e724195..0704acb4a 100644 --- a/mailman/core/errors.py +++ b/mailman/core/errors.py @@ -26,22 +26,6 @@ class MailmanException(Exception): -# Exceptions for problems related to opening a list -class MMListError(MailmanException): pass - -class MMUnknownListError(MMListError): - def __init__(self, listname=None): - self._listname = listname - - def __str__(self): - return self._listname - - -# Membership exceptions -class MMMemberError(MailmanException): pass -class MMBadUserError(MMMemberError): pass -class MMAlreadyAMember(MMMemberError): pass - # "New" style membership exceptions (new w/ MM2.1) class MemberError(MailmanException): pass class NotAMemberError(MemberError): pass @@ -51,27 +35,6 @@ class CantDigestError(MemberError): pass class MustDigestError(MemberError): pass class MembershipIsBanned(MemberError): pass -# Exception hierarchy for various authentication failures, can be -# raised from functions in SecurityManager.py -class MMAuthenticationError(MailmanException): pass -class MMCookieError(MMAuthenticationError): pass -class MMExpiredCookieError(MMCookieError): pass -class MMInvalidCookieError(MMCookieError): pass - -# BAW: these still need to be converted to classes. -MMMustDigestError = "MMMustDigestError" -MMCantDigestError = "MMCantDigestError" -MMNeedApproval = "MMNeedApproval" -MMSubscribeNeedsConfirmation = "MMSubscribeNeedsConfirmation" -MMBadConfirmation = "MMBadConfirmation" -MMAlreadyDigested = "MMAlreadyDigested" -MMAlreadyUndigested = "MMAlreadyUndigested" - -MODERATED_LIST_MSG = "Moderated list" -IMPLICIT_DEST_MSG = "Implicit destination" -SUSPICIOUS_HEADER_MSG = "Suspicious header" -FORBIDDEN_SENDER_MSG = "Forbidden sender" - # New style class based exceptions. All the above errors should eventually be @@ -84,10 +47,6 @@ class MailmanError(MailmanException): class BadDomainSpecificationError(MailmanError): """The specification of a virtual domain is invalid or duplicated.""" -class MMLoopingPost(MailmanError): - """Post already went through this list!""" - pass - # Exception hierarchy for bad email address errors that can be raised from @@ -140,10 +99,6 @@ class SomeRecipientsFailed(HandlerError): self.tempfailures = tempfailures self.permfailures = permfailures -# multiple inheritance for backwards compatibility -class LoopError(DiscardMessage, MMLoopingPost): - """We've seen this message before""" - class RejectMessage(HandlerError): """The message will be bounced back to the sender""" def __init__(self, notice=None): @@ -166,7 +121,7 @@ class SubscriptionError(MailmanError): class HostileSubscriptionError(SubscriptionError): """A cross-subscription attempt was made. - + This exception gets raised when an invitee attempts to use the invitation to cross-subscribe to some other mailing list. """ @@ -177,14 +132,6 @@ class PasswordError(MailmanError): """A password related error.""" -class MMBadPasswordError(PasswordError, MMAuthenticationError): - """A bad password was given.""" - - -class MMPasswordsMustMatch(PasswordError, MMAuthenticationError): - """The given passwords don't match.""" - - class BadPasswordSchemeError(PasswordError): """A bad password scheme was given.""" |
