aboutsummaryrefslogtreecommitdiffstats
path: root/python/atoma/exceptions.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/atoma/exceptions.py')
-rw-r--r--python/atoma/exceptions.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/python/atoma/exceptions.py b/python/atoma/exceptions.py
new file mode 100644
index 0000000..88170c5
--- /dev/null
+++ b/python/atoma/exceptions.py
@@ -0,0 +1,14 @@
+class FeedParseError(Exception):
+ """Document is an invalid feed."""
+
+
+class FeedDocumentError(Exception):
+ """Document is not a supported file."""
+
+
+class FeedXMLError(FeedDocumentError):
+ """Document is not valid XML."""
+
+
+class FeedJSONError(FeedDocumentError):
+ """Document is not valid JSON."""