Spotify Exception
Types
Link copied to clipboard
Exception signifying that authentication (via token or code) was unsuccessful, likely due to an invalid access token, code, or refresh token.
Link copied to clipboard
open class BadRequestException(message: String, val statusCode: Int? = null, val reason: String? = null, cause: Throwable? = null) : SpotifyException
Thrown when a request fails.
Link copied to clipboard
Exception signifying that JSON (de)serialization failed. This is likely a library error rather than user error.
Link copied to clipboard
class ReAuthenticationNeededException(cause: Throwable? = null, message: String? = null) : SpotifyException
Exception signifying that re-authentication via spotify-auth is necessary. Thrown by default when refreshTokenProducer is null.
Link copied to clipboard
class SpotifyScopesNeededException(cause: Throwable? = null, val missingScopes: List<SpotifyScope>) : SpotifyException.BadRequestException
Exception signifying that the current api token does not have the necessary scope to complete this request
Link copied to clipboard
Exception signifying that the HTTP request associated with this API endpoint timed out (by default, after 100 seconds).
Link copied to clipboard