diff options
| author | Georg Brandl <georg@python.org> | 2010-02-28 10:21:00 +0100 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2010-02-28 10:21:00 +0100 |
| commit | 887ee5f5291ccf51bdddf137a4cd8df20b3482a5 (patch) | |
| tree | 3dbe8d2ef949192fa98e98f0489fb0dbfdc8be2b /sphinx/errors.py | |
| parent | cb653c494f300f5cc5208524b100878eca8ff8be (diff) | |
| parent | a8cca36b28a33b22e7d79600cfbbd33f5ec4f09a (diff) | |
| download | sphinx-887ee5f5291ccf51bdddf137a4cd8df20b3482a5.tar.gz | |
merge with trunk
Diffstat (limited to 'sphinx/errors.py')
| -rw-r--r-- | sphinx/errors.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sphinx/errors.py b/sphinx/errors.py index 4738f0cc..b614d9ab 100644 --- a/sphinx/errors.py +++ b/sphinx/errors.py @@ -54,3 +54,11 @@ class ThemeError(SphinxError): class VersionRequirementError(SphinxError): category = 'Sphinx version error' + + +class PycodeError(Exception): + def __str__(self): + res = self.args[0] + if len(self.args) > 1: + res += ' (exception was: %r)' % self.args[1] + return res |
