cis notified web server of a job completion; upload form interface and validation...
[living-lab-site.git] / cis / cis_exceptions.py
diff --git a/cis/cis_exceptions.py b/cis/cis_exceptions.py
new file mode 100644 (file)
index 0000000..11fbf8a
--- /dev/null
@@ -0,0 +1,27 @@
+#!/usr/bin/env python
+
+"""
+This module implements exceptions raised in Content Ingestion Server.
+"""
+
+class NotImplementedException(Exception):
+    def __init__(self, value):
+        self.value = value
+
+    def __str__(self):
+        return repr(self.value)
+
+class FileAlreadyExistsException(Exception):
+    pass
+
+class TranscodingException(Exception):
+    pass
+
+class ThumbExtractionException(Exception):
+    pass
+
+class AVInfoException(Exception):
+    pass
+
+class FileTransferException(Exception):
+    pass