Exception

data class Exception<T>(val exception: Throwable) : ApiResponse.Failure<T>

Author

skydoves (Jaewoong Eum)

API request Exception case. An unexpected exception occurs while creating requests or processing an response in the client side. e.g., network connection error, timeout.

Parameters

exception

An throwable exception.

Constructors

Link copied to clipboard
fun Exception(exception: Throwable)

Properties

Link copied to clipboard
val exception: Throwable
Link copied to clipboard
val message: String?

The localized message from the exception.

Functions

Link copied to clipboard
open override fun toString(): String

Extensions

Link copied to clipboard
fun <T> ApiResponse.Failure.Exception<T>.message(): String

Returns an error message from the ApiResponse.Failure.Exception that consists of the localized message.