📔 Errors¶

Module: errors.py

Handles custom exceptions for error handling.

exception NoMatchingTrackFound(message='No track was found matching the query or Spotify ID/URI/URL.')¶

Raised when no song matching the specified query is found.

exception NoMatchingAlbumFound(message='No album was found matching the query or Spotify ID/URI/URL.')¶

Raised when no album matching the specified query is found.

exception NoLyricsAvailable(message='No lyrics were found for the specified song')¶

Raised when no lyrics are available for the specified song.

exception InvalidSearchLimit(message='The search limit must be set to at least 1.')¶

Raised when an invalid search limit is specified for tracks or albums.

exception InvalidSelectionError(message="Invalid range format. Please use 'start-end', ensuring start is less than end.")¶

Raised when an invalid selection range is provided for lyrics.

exception LineLimitExceededError(message='Exactly 4 lines must be selected, no more, no less.')¶

Raised when the selection in lyrics contains more or fewer than 4 lines.

exception InvalidFormatError(message="Use format 'x-y' where x and y are numbers.")¶

Raised when the format of the lyrics selection is invalid.

exception ThemeNotFoundError(message='The specified theme could not be found. Please ensure the theme name is valid.')¶

Raised when the specified theme is not found or is invalid.