library / io.getstream.chat.android.livedata / ChatDomain / errorEvents

errorEvents

abstract val errorEvents: LiveData<Event<ChatError>>

The error event livedata object is triggered when errors in the underlying components occure. The following example shows how to observe these errors

repo.errorEvent.observe(this, EventObserver { // create a toast })