Class OpentokError


  • public class OpentokError
    extends java.lang.Object
    Defines errors thrown by the OpenTok Android SDK.

    Check the values returned by getErrorCode() and getMessage() for details on the error.

    • Constructor Detail

      • OpentokError

        public OpentokError​(OpentokError.Domain errorDomain,
                            int errorCode,
                            java.lang.String msg)
        Builds an OpentokError based on its domain, error code and message.
      • OpentokError

        public OpentokError​(OpentokError.Domain errorDomain,
                            int errorCode,
                            java.lang.Exception exception)
        Builds an OpentokError based on its domain, error code and message.
    • Method Detail

      • getErrorCode

        public OpentokError.ErrorCode getErrorCode()
        Returns the error code. Values for the error code are defined by the OpentokError.ErrorCode enum.

        Call the getMessage() method to get more details on the error.

      • getMessage

        public java.lang.String getMessage()
      • getException

        public java.lang.Exception getException()