onError

open fun onError(message: String)

Event emitted when an error occurs.