ErrorHandler

Extension for io.getstream.chat.android.client.ChatClient that allows handling plugins' errors.

See also

io.getstream.chat.android.client.experimental.plugin.Plugin

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val priority: Int

The priority of this ErrorHandler. Use it to run it before error handlers of the same type.

Functions

Link copied to clipboard
open operator override fun compareTo(other: ErrorHandler): Int

Inherited functions

Link copied to clipboard
abstract fun onCreateChannelError(originalCall: Call<Channel>, channelType: String, channelId: String, memberIds: List<String>, extraData: Map<String, Any>): ReturnOnErrorCall<Channel>

Returns a Result from this side effect when original request fails.

Link copied to clipboard
abstract fun onDeleteReactionError(originalCall: Call<Message>, cid: String?, messageId: String): ReturnOnErrorCall<Message>

Returns a Result from this side effect when original request is failed.

Link copied to clipboard
abstract fun onQueryMembersError(originalCall: Call<List<Member>>, channelType: String, channelId: String, offset: Int, limit: Int, filter: FilterObject, sort: QuerySorter<Member>, members: List<Member>): ReturnOnErrorCall<List<Member>>

Returns a Result from this side effect when original request is failed.

Link copied to clipboard
abstract fun onSendReactionError(originalCall: Call<Reaction>, reaction: Reaction, enforceUnique: Boolean, currentUser: User): ReturnOnErrorCall<Reaction>

Returns a Result from this side effect when original request is failed.