Skip to content

//readium-shared/org.readium.r2.shared.util.http/ProblemDetails

ProblemDetails

[androidJvm]\ 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

androidJvm

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

ProblemDetails [androidJvm]
fun ProblemDetails(title: String, type: String? = null, status: Int? = null, detail: String? = null, instance: String? = null)

Types

Name Summary
Companion [androidJvm]
object Companion

Functions

Name Summary
describeContents [androidJvm]
abstract fun describeContents(): Int
writeToParcel [androidJvm]
abstract fun writeToParcel(p0: Parcel, p1: Int)

Properties

Name Summary
detail [androidJvm]
val detail: String? = null
instance [androidJvm]
val instance: String? = null
status [androidJvm]
val status: Int? = null
title [androidJvm]
val title: String
type [androidJvm]
val type: String? = null