onError

abstract fun onError(error: Error)

Called when an error occurred.