Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-06-21 17:56:29 +0300
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2018-07-16 08:56:46 +0300
commit99e696415290900cc174defd8fa74ec8645dd0aa (patch)
tree2cb1184fc0c3eda8683ea99e39b479802258b869 /sphinx/errors.py
parent9bc2a93d361c3505d810f8ab1953fa06a90de191 (diff)
Handle errors on scanning documents (refs: #5114)
Diffstat (limited to 'sphinx/errors.py')
-rw-r--r--sphinx/errors.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/sphinx/errors.py b/sphinx/errors.py
index 83c1bd9da..e97447e86 100644
--- a/sphinx/errors.py
+++ b/sphinx/errors.py
@@ -82,6 +82,11 @@ class ConfigError(SphinxError):
category = 'Configuration error'
+class DocumentError(SphinxError):
+ """Document error."""
+ category = 'Document error'
+
+
class ThemeError(SphinxError):
"""Theme error."""
category = 'Theme error'