diff options
| author | Barry Warsaw | 2009-11-03 22:29:18 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2009-11-03 22:29:18 -0500 |
| commit | d93c9f447482e14e0385854b661200553db661a1 (patch) | |
| tree | ce84655ee4fe3d39af99f4e37b0ae7228d0bf5f6 /src/mailman/core/errors.py | |
| parent | 83773bbce02e9083f3f427537b9e5bf135f52cd9 (diff) | |
| download | mailman-d93c9f447482e14e0385854b661200553db661a1.tar.gz mailman-d93c9f447482e14e0385854b661200553db661a1.tar.zst mailman-d93c9f447482e14e0385854b661200553db661a1.zip | |
Diffstat (limited to 'src/mailman/core/errors.py')
| -rw-r--r-- | src/mailman/core/errors.py | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/mailman/core/errors.py b/src/mailman/core/errors.py index f320dc9d2..8037ea823 100644 --- a/src/mailman/core/errors.py +++ b/src/mailman/core/errors.py @@ -40,14 +40,12 @@ __all__ = [ 'NotAMemberError', 'PasswordError', 'RejectMessage', - 'SomeRecipientsFailed', 'SubscriptionError', ] -# Base class for all exceptions raised in Mailman (XXX except legacy string -# exceptions). +# Base class for all exceptions raised in Mailman. class MailmanException(Exception): pass @@ -94,10 +92,12 @@ class LostHeldMessage(MailmanError): def _(s): return s + # Exceptions for the Handler subsystem class HandlerError(MailmanError): """Base class for all handler errors.""" + class HoldMessage(HandlerError): """Base class for all message-being-held short circuits.""" @@ -113,15 +113,10 @@ class HoldMessage(HandlerError): def rejection_notice(self, mlist): return self.rejection + class DiscardMessage(HandlerError): """The message can be discarded with no further action""" -class SomeRecipientsFailed(HandlerError): - """Delivery to some or all recipients failed""" - def __init__(self, tempfailures, permfailures): - HandlerError.__init__(self) - self.tempfailures = tempfailures - self.permfailures = permfailures class RejectMessage(HandlerError): """The message will be bounced back to the sender""" |
