summaryrefslogtreecommitdiff
path: root/sphinx/errors.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-01-13 23:35:13 +0000
committerGeorg Brandl <georg@python.org>2010-01-13 23:35:13 +0000
commit07f295df7ce486b36d950614080b1267dc709dfa (patch)
treefa4d59c28c0c92ffa42b18f94438f9312f89b1f9 /sphinx/errors.py
parenta52885d078a9dcc921b113f65b7d3fde76709ded (diff)
parentedb89b1940326e9e5e7488db91f46355e3871346 (diff)
downloadsphinx-git-07f295df7ce486b36d950614080b1267dc709dfa.tar.gz
merge
Diffstat (limited to 'sphinx/errors.py')
-rw-r--r--sphinx/errors.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/sphinx/errors.py b/sphinx/errors.py
index 684101c68..ca70fe4b2 100644
--- a/sphinx/errors.py
+++ b/sphinx/errors.py
@@ -46,3 +46,11 @@ class ExtensionError(SphinxError):
class ThemeError(SphinxError):
category = 'Theme 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