ErrorObject

data class ErrorObject(status: Int, message: String, reason: String?)

An endpoint exception from Spotify

Parameters

status

The HTTP status code

message

A short description of the cause of the error.

Constructors

ErrorObject
Link copied to clipboard
common
fun ErrorObject(status: Int, message: String, reason: String? = null)
The HTTP status code

Functions

component1
Link copied to clipboard
common
operator fun component1(): Int
component2
Link copied to clipboard
common
operator fun component2(): String
component3
Link copied to clipboard
common
operator fun component3(): String?
copy
Link copied to clipboard
common
fun copy(status: Int, message: String, reason: String? = null): ErrorObject
equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
toString
Link copied to clipboard
common
open override fun toString(): String

Properties

message
Link copied to clipboard
common
val message: String
A short description of the cause of the error.
reason
Link copied to clipboard
common
val reason: String? = null
status
Link copied to clipboard
common
val status: Int
The HTTP status code

Sources

(source)
Link copied to clipboard