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