HMSException

class HMSException(val code: Int, val name: String, val action: String, val message: String, description: String, cause: Throwable? = null, var isTerminal: Boolean = true, params: HashMap<String, Any> = hashMapOf()) : Exception, IAnalyticsPropertiesProvider

This class contains the error codes and messages that may arise when calling any API of HMS SDK

Constructors

Link copied to clipboard
fun HMSException(code: Int, name: String, action: String, message: String, description: String, cause: Throwable? = null, isTerminal: Boolean = true, params: HashMap<String, Any> = hashMapOf())

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun toAnalyticsProperties(): HashMap<String, Any>
Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard

Action denotes the category which resulted in this error (Not so useful for UI)

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
val code: Int

The error code by which this error can be identified with

Link copied to clipboard
Link copied to clipboard
var isTerminal: Boolean = true

This denotes if the SDK has cleaned up the connection due to this error or not. UI show show a notification or dialog according to this. If this is true it denotes that this error has removed user from the room else it denotes that user is still in the room even with this error

Link copied to clipboard
open override val message: String

The error message describing the error which can be shown on the UI

Link copied to clipboard

The error name by which can be shown to user in UI