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 Detail

      • getCode

         final Integer getCode()

        The error code by which this error can be identified with

      • getName

         final String getName()

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

      • 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