Types

Link copied to clipboard
class AuthenticationException(message: String, cause: Throwable? = null) : SpotifyException

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
class ParseException(message: String, cause: Throwable? = null) : SpotifyException

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

Exception signifying that the current api token does not have the necessary scope to complete this request

Link copied to clipboard
class TimeoutException(message: String, cause: Throwable? = null) : SpotifyException

Exception signifying that the HTTP request associated with this API endpoint timed out (by default, after 100 seconds).

Link copied to clipboard
abstract class UnNullableException(message: String) : SpotifyException

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
open val message: String?