From 8bb13a109d73ca633f50bb90258ced18adeeff7f Mon Sep 17 00:00:00 2001 From: geoffrey45 Date: Sun, 27 Mar 2022 18:12:20 +0300 Subject: [PATCH] Add Exceptions --- server/app/exceptions.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 server/app/exceptions.py diff --git a/server/app/exceptions.py b/server/app/exceptions.py new file mode 100644 index 00000000..2777466a --- /dev/null +++ b/server/app/exceptions.py @@ -0,0 +1,14 @@ +class TrackExistsInPlaylist(Exception): + """ + Exception raised when a track is already in a playlist. + """ + + pass + + +class PlaylistExists(Exception): + """ + Exception raised when a playlist already exists. + """ + + pass