summaryrefslogtreecommitdiff
path: root/src/mailman/core/errors.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/core/errors.py')
-rw-r--r--src/mailman/core/errors.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mailman/core/errors.py b/src/mailman/core/errors.py
index 95a318ca6..42b536d46 100644
--- a/src/mailman/core/errors.py
+++ b/src/mailman/core/errors.py
@@ -90,6 +90,12 @@ def _(s):
class HandlerError(MailmanError):
"""Base class for all handler errors."""
+ def __init__(self, message=None):
+ self.message = message
+
+ def __str__(self):
+ return self.message
+
class HoldMessage(HandlerError):
"""Base class for all message-being-held short circuits."""