Exceptions

Inheritance diagram of musify.api.exception

Exceptions relating to API operations.

Exceptions:

APIError([message, response])

Exception raised for API errors.

RequestError([message, response])

Exception raised for errors relating to requests to an API.

CacheError([message, response])

Exception raised for errors relating to the cache as part of API operations.

exception musify.api.exception.APIError(message=None, response=None)

Bases: MusifyError

Exception raised for API errors.

Parameters:
  • message (str | None (default: None)) – Explanation of the error.

  • response (Response | None (default: None)) – The Response related to the error.

exception musify.api.exception.RequestError(message=None, response=None)

Bases: APIError

Exception raised for errors relating to requests to an API.

exception musify.api.exception.CacheError(message=None, response=None)

Bases: APIError

Exception raised for errors relating to the cache as part of API operations.