recoverIf

inline fun <T> ApiResult<T>.recoverIf(condition: (Exception) -> Boolean, block: (Exception) -> ApiResult<T>): ApiResult<T>

Recover from an Error only if the condition is true, else no-op. Does not affect Loading

See also