summaryrefslogtreecommitdiff
path: root/Mailman/Errors.py
diff options
context:
space:
mode:
authorbwarsaw2001-07-10 05:41:36 +0000
committerbwarsaw2001-07-10 05:41:36 +0000
commita13085395c2977e75e0b6a000daba5739bf4f581 (patch)
tree794e055ad412b520f9dca3ed4c97fa5ce1488bc9 /Mailman/Errors.py
parent6646c14d7a13ba3217e6eef6b6e6f1cbf5c3839b (diff)
downloadmailman-a13085395c2977e75e0b6a000daba5739bf4f581.tar.gz
mailman-a13085395c2977e75e0b6a000daba5739bf4f581.tar.zst
mailman-a13085395c2977e75e0b6a000daba5739bf4f581.zip
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):