grooveondemand/groove/exceptions.py

42 lines
810 B
Python
Raw Normal View History

2022-12-02 21:43:51 -08:00
class APIHandlingException(Exception):
"""
An API reqeust could not be encoded or decoded.
"""
class ThemeMissingException(Exception):
"""
The specified theme could not be loaded.
"""
class ThemeConfigurationError(Exception):
"""
A theme is missing required files or configuration.
"""
class ConfigurationError(Exception):
"""
An error was discovered with the Groove on Demand configuration.
"""
2022-12-06 22:17:53 -08:00
2022-12-07 18:19:38 -08:00
class PlaylistValidationError(Exception):
2022-12-06 22:17:53 -08:00
"""
2022-12-07 18:19:38 -08:00
An error was discovered in the playlist definition.
2022-12-06 22:17:53 -08:00
"""
2022-12-07 23:10:41 -08:00
class TrackNotFoundError(Exception):
"""
The specified track doesn't exist.
"""
2022-12-21 15:17:13 -08:00
class InvalidPathError(Exception):
"""
The specified path was invalid -- either it was not the expected type or wasn't accessible.
"""