BadRequestException

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

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.

Constructors

BadRequestException
Link copied to clipboard
common
fun BadRequestException(message: String, cause: Throwable? = null)
BadRequestException
Link copied to clipboard
common
fun BadRequestException(error: ErrorObject?, cause: Throwable? = null)
BadRequestException
Link copied to clipboard
common
fun BadRequestException(authenticationError: AuthenticationError)
BadRequestException
Link copied to clipboard
common
fun BadRequestException(responseException: ResponseException)
BadRequestException
Link copied to clipboard
common
fun BadRequestException(message: String, statusCode: Int? = null, reason: String? = null, cause: Throwable? = null)
The status code of the request, if this exception is thrown after the completion of an HTTP request.

Properties

cause
Link copied to clipboard
common
open val cause: Throwable?
message
Link copied to clipboard
common
open val message: String?
reason
Link copied to clipboard
common
val reason: String? = null
The reason for the failure, as a readable message.
statusCode
Link copied to clipboard
common
val statusCode: Int? = null
The status code of the request, if this exception is thrown after the completion of an HTTP request.

Inheritors

SpotifyException
Link copied to clipboard
SpotifyUriException
Link copied to clipboard

Sources

common source
Link copied to clipboard