Status

class Status(val code: Status.Code)

Constructors

Link copied to clipboard
fun Status(code: Status.Code)

Types

Link copied to clipboard
enum Code : Enum<Status.Code>
Link copied to clipboard
object Companion
Link copied to clipboard
enum StatusError : Enum<Status.StatusError>

Functions

Link copied to clipboard
fun fromCodeToError(code: Status.Code): Status.StatusError
Link copied to clipboard
fun isOk(): Boolean
Link copied to clipboard
fun isTimeout(): Boolean
Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
var cause: Throwable? = null
Link copied to clipboard
val code: Status.Code
Link copied to clipboard
var description: String? = null
Link copied to clipboard
val error: Status.StatusError

Extensions

Link copied to clipboard
fun Status.withCause(cause: Throwable?): Status
Link copied to clipboard
fun Status.withDescription(description: String?): Status