onError

fun onError(callback: (Throwable) -> Unit): Result<T>

Convenience method to listen for Error.

Parameters

callback

that gets a list of Throwable.