onError

abstract fun onError(error: Throwable)

Triggers an error event.