BadRequestException

open class BadRequestException(message: String, val statusCode: Int? = null, val reason: String? = null, cause: Throwable? = null) : SpotifyException(source)

Thrown when a request fails.

Parameters

statusCode

The status code of the request, if this exception is thrown after the completion of an HTTP request.

reason

The reason for the failure, as a readable message.

Inheritors

Constructors

Link copied to clipboard
constructor(message: String, cause: Throwable? = null)
constructor(error: ErrorObject?, cause: Throwable? = null)
constructor(authenticationError: AuthenticationError)
constructor(responseException: ResponseException)
constructor(message: String, statusCode: Int? = null, reason: String? = null, cause: Throwable? = null)

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
open val message: String?
Link copied to clipboard
val reason: String? = null
Link copied to clipboard
val statusCode: Int? = null