diff options
Diffstat (limited to 'Mailman/Handlers/HandlerAPI.py')
| -rw-r--r-- | Mailman/Handlers/HandlerAPI.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Mailman/Handlers/HandlerAPI.py b/Mailman/Handlers/HandlerAPI.py index e811f2f8f..16b9b6a01 100644 --- a/Mailman/Handlers/HandlerAPI.py +++ b/Mailman/Handlers/HandlerAPI.py @@ -30,14 +30,22 @@ from Mailman.pythonlib.StringIO import StringIO class HandlerError(Errors.MailmanError): """Base class for all handler errors.""" + class MessageHeld(HandlerError): """Base class for all message-being-held short circuits.""" def __str__(self): return self.__class__.__doc__ + rejection = 'Your message was rejected' + + def rejection_notice(self, mlist): + return self.__class__.rejection + + class DiscardMessage(HandlerError): """The message can be discarded with no further action""" + class SomeRecipientsFailed(HandlerError): """Delivery to some or all recipients failed""" |
