spotifywebapipython.spotifywebapiauthenticationerror
@export
class
SpotifyWebApiAuthenticationErrorException thrown when a Spotify Web API Authentication Error occurs.
Whenever the application makes requests related to authentication or authorization to Web API, such as retrieving an access token or refreshing an access token, the error response follows RFC 6749 on the OAuth 2.0 Authorization Framework.
SpotifyWebApiAuthenticationError( error: str, errorDescription: str, methodName: str, httpStatus: int, httpReason: str, logsi: smartinspectpython.sisession.SISession = None)
Initializes a new instance of the class.
Arguments:
- error (str): A high level description of the error as specified in RFC 6749 Section 5.2.
- errorDescription (str): A more detailed description of the error as specified in RFC 6749 Section 4.1.2.1.
- methodName (str): Name of the client method that executed the request.
- httpStatus (str): HTTP status code for the error.
- httpReason (str): HTTP reason code for the error.
- logsi (SISession): Trace session object that this exception will be logged to, or null to bypass trace logging.
Default is None.
Error: str
A high level description of the error as specified in RFC 6749 Section 5.2.
Example: invalid_client
.