generic Error Handler

fun <T : Any> genericErrorHandler(e: Throwable, result: DevData<T>)

Method to set mutable live data fail error value based on throwable

Parameters

e

Error that occurred

result

Mutable live data to set

Sources

Link copied to clipboard