mirror of
https://github.com/tcsenpai/swingmusic.git
synced 2025-06-07 03:35:35 +00:00
Add Exceptions
This commit is contained in:
parent
b7f34e1677
commit
8bb13a109d
14
server/app/exceptions.py
Normal file
14
server/app/exceptions.py
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user