summaryrefslogtreecommitdiff
path: root/Mailman/interfaces/errors.py
diff options
context:
space:
mode:
authorBarry Warsaw2008-02-19 21:22:20 -0500
committerBarry Warsaw2008-02-19 21:22:20 -0500
commitaab29f252ebefb1520714080a90bb42a25393f18 (patch)
treea5df0c60d606bd3fbe1455d9a6c95be5dd55e6f6 /Mailman/interfaces/errors.py
parent2bd332002f241ab7ca77f935a73692f6cbf41fe5 (diff)
downloadmailman-aab29f252ebefb1520714080a90bb42a25393f18.tar.gz
mailman-aab29f252ebefb1520714080a90bb42a25393f18.tar.zst
mailman-aab29f252ebefb1520714080a90bb42a25393f18.zip
The start of a cleaning up of Errors.py. Eventually, I want to get rid of
this module, in favor of moving exceptions into the interface modules that they are appropriate for. For now, this is just the low-hanging fruit. Along the way, clean up by reSTifying some interfaces and implementations.
Diffstat (limited to 'Mailman/interfaces/errors.py')
-rw-r--r--Mailman/interfaces/errors.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/Mailman/interfaces/errors.py b/Mailman/interfaces/errors.py
new file mode 100644
index 000000000..81f03d1ea
--- /dev/null
+++ b/Mailman/interfaces/errors.py
@@ -0,0 +1,28 @@
+# Copyright (C) 1998-2008 by the Free Software Foundation, Inc.
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
+# USA.
+
+"""Base Mailman exceptions.
+
+The exceptions in this module are those that are commonly shared among many
+components. More specific exceptions will be located in the relevant
+interfaces.
+"""
+
+
+
+class MailmanError(Exception):
+ """Base class for all Mailman exceptions."""