summaryrefslogtreecommitdiff
path: root/sphinx/errors.py
diff options
context:
space:
mode:
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 4e62b1af1..6e8c4e1c6 100644
--- a/sphinx/errors.py
+++ b/sphinx/errors.py
@@ -50,3 +50,11 @@ class ConfigError(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