diff options
-rw-r--r-- | gn3/exceptions.py | 9 |
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""" |