Error
API response error case. API communication conventions do not match or applications need to handle errors. e.g., internal server error.
Parameters
response
A response from OkHttp request call.
Constructors
Properties
Functions
Extensions
Link copied to clipboard
fun <T, V> ApiResponse.Failure.Error<T>.map(mapper: ApiErrorModelMapper<V>): V
Content copied to clipboard
fun <T, V> ApiResponse.Failure.Error<T>.map(mapper: (ApiResponse.Failure.Error<T>) -> V): V
Content copied to clipboard
inline fun <T, V> ApiResponse.Failure.Error<T>.map(mapper: ApiErrorModelMapper<V>, crossinline onResult: V.() -> Unit)
Content copied to clipboard
Link copied to clipboard
inline suspend fun <T, V> ApiResponse.Failure.Error<T>.suspendMap(mapper: ApiErrorModelMapper<V>, crossinline onResult: suspend V.() -> Unit)
Content copied to clipboard
inline suspend fun <T, V> ApiResponse.Failure.Error<T>.suspendMap(crossinline mapper: suspend (ApiResponse.Failure.Error<T>) -> V): V
Content copied to clipboard