onError

val onError: (error: Throwable) -> Unit

Parameters

onError

the function to call if an error occurs.