onError

abstract fun onError(e: Exception)

Called on the main thread when the capture fails.