Class HMSException
-
- All Implemented Interfaces:
-
java.io.Serializable,live.hms.video.events.IAnalyticsPropertiesProvider
public final class HMSException extends Exception implements IAnalyticsPropertiesProvider
This class contains the error codes and messages that may arise when calling any API of HMS SDK
-
-
Method Summary
Modifier and Type Method Description final StringgetDescription()final IntegergetCode()The error code by which this error can be identified with final StringgetName()The error name by which can be shown to user in UI final StringgetAction()Action denotes the category which resulted in this error (Not so useful for UI) StringgetMessage()The error message describing the error which can be shown on the UI final BooleanisTerminal()This denotes if the SDK has cleaned up the connection due to this error or not. final UnitsetTerminal(Boolean isTerminal)This denotes if the SDK has cleaned up the connection due to this error or not. HashMap<String, Object>toAnalyticsProperties()StringtoString()-
Methods inherited from class kotlin.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getDescription
final String getDescription()
-
getAction
final String getAction()
Action denotes the category which resulted in this error (Not so useful for UI)
-
getMessage
String getMessage()
The error message describing the error which can be shown on the UI
-
isTerminal
final Boolean isTerminal()
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
-
setTerminal
final Unit setTerminal(Boolean isTerminal)
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
-
toAnalyticsProperties
HashMap<String, Object> toAnalyticsProperties()
-
-
-
-