fix: subclass exceptions from valueerror as well
allows for more standard handling arguably we shouldn't be using our own exceptions for cases like this in the first place
This commit is contained in:
parent
252ee0b79e
commit
05200a9659
|
|
@ -61,7 +61,7 @@ class NoNodesAvailable(PomiceException):
|
|||
pass
|
||||
|
||||
|
||||
class TrackInvalidPosition(PomiceException):
|
||||
class TrackInvalidPosition(PomiceException, ValueError):
|
||||
"""An invalid position was chosen for a track."""
|
||||
|
||||
pass
|
||||
|
|
@ -73,19 +73,19 @@ class TrackLoadError(PomiceException):
|
|||
pass
|
||||
|
||||
|
||||
class FilterInvalidArgument(PomiceException):
|
||||
class FilterInvalidArgument(PomiceException, ValueError):
|
||||
"""An invalid argument was passed to a filter."""
|
||||
|
||||
pass
|
||||
|
||||
|
||||
class FilterTagInvalid(PomiceException):
|
||||
class FilterTagInvalid(PomiceException, ValueError):
|
||||
"""An invalid tag was passed or Pomice was unable to find a filter tag"""
|
||||
|
||||
pass
|
||||
|
||||
|
||||
class FilterTagAlreadyInUse(PomiceException):
|
||||
class FilterTagAlreadyInUse(PomiceException, ValueError):
|
||||
"""A filter with a tag is already in use by another filter"""
|
||||
|
||||
pass
|
||||
|
|
@ -97,7 +97,7 @@ class InvalidSpotifyClientAuthorization(PomiceException):
|
|||
pass
|
||||
|
||||
|
||||
class AppleMusicNotEnabled(PomiceException):
|
||||
class AppleMusicNotEnabled(PomiceException, ValueError):
|
||||
"""An Apple Music Link was passed in when Apple Music functionality was not enabled."""
|
||||
|
||||
pass
|
||||
|
|
|
|||
Loading…
Reference in New Issue