Error

data class Error(val code: Int? = null, val heading: String? = null, val message: String? = null) : NetworkState

Network state for failed requests with an optional message or code

Parameters

code

The response code from the last request

heading

Heading related to the error message

message

Message to display if any are available

Constructors

Link copied to clipboard
constructor(code: Int? = null, heading: String? = null, message: String? = null)

Properties

Link copied to clipboard
val code: Int? = null
Link copied to clipboard
val heading: String? = null
Link copied to clipboard
val message: String? = null