aboutsummaryrefslogtreecommitdiff
path: root/gn3/exceptions.py
diff options
context:
space:
mode:
authorBonfaceKilz2021-02-12 21:16:06 +0300
committerBonfaceKilz2021-02-12 21:16:06 +0300
commit2b6652a703a89514244cc6961b4ccbee2a839cbd (patch)
treee9c6b6a11e26c424774150c2d44b85e29ee490eb /gn3/exceptions.py
parent13402f65d54e77645879c13c3bc396d2b9735061 (diff)
downloadgenenetwork3-2b6652a703a89514244cc6961b4ccbee2a839cbd.tar.gz
Add custom gn3 exceptions
Diffstat (limited to 'gn3/exceptions.py')
-rw-r--r--gn3/exceptions.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/gn3/exceptions.py b/gn3/exceptions.py
new file mode 100644
index 0000000..3f595dd
--- /dev/null
+++ b/gn3/exceptions.py
@@ -0,0 +1,9 @@
+"""GN3 custom exceptions"""
+
+
+class FailedToQueue(Exception):
+ """Raised when a queueing operation fails"""
+
+
+class RedisConnectionError(ConnectionError):
+ """Raised when there is no Redis connection"""