summaryrefslogtreecommitdiff
path: root/Mailman/Errors.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mailman/Errors.py')
-rw-r--r--Mailman/Errors.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Mailman/Errors.py b/Mailman/Errors.py
index 43d7876c6..783c2ae0e 100644
--- a/Mailman/Errors.py
+++ b/Mailman/Errors.py
@@ -99,7 +99,7 @@ class LostHeldMessage(MailmanError):
class HandlerError(MailmanError):
"""Base class for all handler errors."""
-class MessageHeld(HandlerError):
+class HoldMessage(HandlerError):
"""Base class for all message-being-held short circuits."""
def __str__(self):
return self.__class__.__doc__
@@ -113,6 +113,9 @@ class MessageHeld(HandlerError):
class DiscardMessage(HandlerError):
"""The message can be discarded with no further action"""
+class RejectMessage(HandlerError):
+ """The message will be bounced back to the sender"""
+
class SomeRecipientsFailed(HandlerError):
"""Delivery to some or all recipients failed"""
def __init__(self, tempfailures, permfailures):