From 92f2a2c8f43150ca4d771e3966ba54627bf5fde9 Mon Sep 17 00:00:00 2001 From: Markus Bauer Date: Sun, 16 May 2021 22:48:13 +0200 Subject: [PATCH] Add custom exception --- src/exceptions.py | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 src/exceptions.py diff --git a/src/exceptions.py b/src/exceptions.py new file mode 100644 index 0000000..04a60b5 --- /dev/null +++ b/src/exceptions.py @@ -0,0 +1,3 @@ +class TooManyConnections(Exception): + def __init__(): + super().__init__("Too many concurrent connections") \ No newline at end of file