[Zodb-checkins] CVS: Packages/ZConfig - Substitution.py:1.12
Fred L. Drake, Jr.
fred@zope.com
Wed, 4 Dec 2002 23:00:47 -0500
Update of /cvs-repository/Packages/ZConfig
In directory cvs.zope.org:/tmp/cvs-serv23407
Modified Files:
Substitution.py
Log Message:
Make SubstitutionError a subclass of ConfigurationError, so that every
exception specific to ZConfig is a specialization of
ConfigurationError.
=== Packages/ZConfig/Substitution.py 1.11 => 1.12 ===
--- Packages/ZConfig/Substitution.py:1.11 Wed Dec 4 20:09:53 2002
+++ Packages/ZConfig/Substitution.py Wed Dec 4 23:00:45 2002
@@ -1,18 +1,9 @@
"""Substitution support for ZConfig values."""
-try:
- False
-except NameError:
- False = 0
+from Common import *
-class SubstitutionError(Exception):
+class SubstitutionError(ConfigurationError):
"""Base class for exceptions raised by ZConfig.Substitution."""
-
- def __init__(self, msg):
- self.message = msg
-
- def __str__(self):
- return self.message
class SubstitutionSyntaxError(SubstitutionError):
"""Raised when interpolation source text contains syntactical errors."""