ProblemDetails

data class ProblemDetails(val title: String, val type: String? = null, val status: Int? = null, val detail: String? = null, val instance: String? = null) : Parcelable

Problem Details for HTTP APIs.

https://tools.ietf.org/html/rfc7807

Parameters

title

A short, human-readable summary of the problem type.

type

A URI reference RFC3986 that identifies the problem type. This specification encourages that, when dereferenced, it provide human-readable documentation for the problem type.

status

The HTTP status code (RFC7231, Section 6) generated by the origin server for this occurrence of the problem.

detail

A human-readable explanation specific to this occurrence of the problem.

instance

A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.

Constructors

Link copied to clipboard
constructor(title: String, type: String? = null, status: Int? = null, detail: String? = null, instance: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val status: Int?
Link copied to clipboard
Link copied to clipboard
val type: String?

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)