[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r9936 - trunk/gnue-common/src/base
From: |
reinhard |
Subject: |
[gnue] r9936 - trunk/gnue-common/src/base |
Date: |
Tue, 6 Oct 2009 08:42:12 -0500 (CDT) |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r9936 - trunk/gnue-common/src/base,
reinhard <=