diff options
| author | Georg Brandl <georg@python.org> | 2010-01-13 23:43:43 +0100 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2010-01-13 23:43:43 +0100 |
| commit | d32394401eae94f0ddb4818d983438ba9fb98efd (patch) | |
| tree | 4f580d020d0b3d3d9a58bca1281486a081d847d9 /sphinx/errors.py | |
| parent | 3ce06dcb4abda7ec6402ab23c96c54b49e685006 (diff) | |
| download | sphinx-d32394401eae94f0ddb4818d983438ba9fb98efd.tar.gz | |
Move getting module source to util.
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 684101c6..ca70fe4b 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 |
