Author: reinhard
Date: 2009-10-06 08:42:11 -0500 (Tue, 06 Oct 2009)
New Revision: 9936
Modified:
trunk/gnue-common/src/base/errors.py
Log:
Derive our exception classes form StandardError, not from Exception.
Modified: trunk/gnue-common/src/base/errors.py
===================================================================
--- trunk/gnue-common/src/base/errors.py 2009-10-06 13:21:45 UTC (rev 9935)
+++ trunk/gnue-common/src/base/errors.py 2009-10-06 13:42:11 UTC (rev 9936)
@@ -159,7 +159,7 @@
# Base exception class for all GNUe Exceptions
# =============================================================================
-class Error(Exception):
+class Error(StandardError):
"""
The same as the builtin python Exception, but can handle messages that are
unicode strings. All other user-defined exceptions should be derived from
@@ -181,7 +181,7 @@
"""
def __init__(self, message, group='system'):
- Exception.__init__(self, i18n.outconv(message))
+ StandardError.__init__(self, i18n.outconv(message))
self.message = message
self.group = group
self.name = None
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.