From 2b6652a703a89514244cc6961b4ccbee2a839cbd Mon Sep 17 00:00:00 2001 From: BonfaceKilz Date: Fri, 12 Feb 2021 21:16:06 +0300 Subject: Add custom gn3 exceptions --- gn3/exceptions.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 gn3/exceptions.py (limited to 'gn3') 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""" -- cgit v1.2.3