summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libcfgparser.tex
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2002-12-31 17:23:27 (GMT)
committerFred Drake <fdrake@acm.org>2002-12-31 17:23:27 (GMT)
commite2c649126ed1bd609710c10776d148750987e947 (patch)
tree2e46b83419cecd761716f901caf1460319bacc3a /Doc/lib/libcfgparser.tex
parent6c5bc3457c2cb9a293e9a402f1af3b60978cbe18 (diff)
downloadcpython-e2c649126ed1bd609710c10776d148750987e947.zip
cpython-e2c649126ed1bd609710c10776d148750987e947.tar.gz
cpython-e2c649126ed1bd609710c10776d148750987e947.tar.bz2
Further cleanup of exceptions. All interpolation-related exceptions
now derive from InterpolationError, which is not raised directly (only subclasses get raised). This matches what the docs already said.
Diffstat (limited to 'Doc/lib/libcfgparser.tex')
-rw-r--r--Doc/lib/libcfgparser.tex15
1 files changed, 12 insertions, 3 deletions
diff --git a/Doc/lib/libcfgparser.tex b/Doc/lib/libcfgparser.tex
index 9951645..1f33df4 100644
--- a/Doc/lib/libcfgparser.tex
+++ b/Doc/lib/libcfgparser.tex
@@ -90,17 +90,26 @@ section.
\end{excdesc}
\begin{excdesc}{InterpolationError}
-Exception raised when problems occur performing string interpolation.
+Base class for exceptions raised when problems occur performing string
+interpolation.
\end{excdesc}
\begin{excdesc}{InterpolationDepthError}
Exception raised when string interpolation cannot be completed because
the number of iterations exceeds \constant{MAX_INTERPOLATION_DEPTH}.
+Subclass of \exception{InterpolationError}.
+\end{excdesc}
+
+\begin{excdesc}{InterpolationMissingOptionError}
+Exception raised when an option referenced from a value does not exist.
+Subclass of \exception{InterpolationError}.
+\versionadded{2.3}
\end{excdesc}
\begin{excdesc}{InterpolationSyntaxError}
Exception raised when the source text into which substitutions are
made does not conform to the required syntax.
+Subclass of \exception{InterpolationError}.
\versionadded{2.3}
\end{excdesc}
@@ -122,8 +131,8 @@ the \var{raw} parameter is false. This is relevant only for the
\begin{seealso}
\seemodule{shlex}{Support for a creating \UNIX{} shell-like
- minilanguages which can be used as an alternate format
- for application configuration files.}
+ mini-languages which can be used as an alternate
+ format for application configuration files.}
\end{seealso}