Failure

data class Failure<T : Any>(val statusCode: StatusCode, val response: T?, val error: AtpErrorDescription?, val headers: Map<String, String>) : AtpResponse<T>

A failed XRPC operation that may have returned a valid response, valid error description, or neither.

Constructors

Link copied to clipboard
constructor(statusCode: StatusCode, response: T?, error: AtpErrorDescription?, headers: Map<String, String>)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val response: T?
Link copied to clipboard

Functions

Link copied to clipboard
fun <R : Any> map(transform: (T) -> R): AtpResponse<R>
Link copied to clipboard
Link copied to clipboard