# Pastebin Hz2qbojo class ExternalServiceError(Exception): """ Base exception for all errors coming from external service integrations.""" pass class ExternalServiceInvalidGrantError(ExternalServiceError): """ Raised if the external music services' API returns invalid_grant during authorization. This usually means that the user has revoked authorization to the ListenBrainz application through external means without unlinking the account from ListenBrainz. """ pass class ExternalServiceAPIError(ExternalServiceError): """ Raise in case of api errors from external services. """ pass class ExternalServiceImporterError(ExternalServiceError): """ Base exception for errors raised in the listens importer service.""" pass