resolveError

fun resolveError(e: Exception): State.ErrorState

It is used to handle the Network errors and return State based on error.

Return

State.ErrorState

Author

Darshan Bhanushali

Parameters

e

is object of Exception