Enum ErrorType

    • Enum Constant Detail

      • OK

        public static final ErrorType OK
        No Error. Value = 0
      • ERROR

        public static final ErrorType ERROR
        Generic error occurred. Value = 1
      • ERROR_NOT_SUPPORTED

        public static final ErrorType ERROR_NOT_SUPPORTED
        Method or feature not supported. Value = 2
      • ERROR_NO_SOURCE

        public static final ErrorType ERROR_NO_SOURCE
        No source present for the operation. Value = 3
      • ERROR_INVALID_DATA

        public static final ErrorType ERROR_INVALID_DATA
        Data or input is invalid for the operation. Value = 4
      • ERROR_INVALID_STATE

        public static final ErrorType ERROR_INVALID_STATE
        Class or object is an invalid state. Value = 5
      • ERROR_INVALID_PARAMETER

        public static final ErrorType ERROR_INVALID_PARAMETER
        Method parameter is invalid. Value = 6
      • ERROR_TIMEOUT

        public static final ErrorType ERROR_TIMEOUT
        Method or operation timed out. Value = 7
      • ERROR_NETWORK

        public static final ErrorType ERROR_NETWORK
        Unspecified Network error. Value = 8
      • ERROR_NETWORK_IO

        public static final ErrorType ERROR_NETWORK_IO
        Error indicating a network I/O failure. Value = 9
      • ERROR_AUTHORIZATION

        public static final ErrorType ERROR_AUTHORIZATION
        Error indicating a network resource is not authorized. Value = 10
      • ERROR_NOT_AVAILABLE

        public static final ErrorType ERROR_NOT_AVAILABLE
        Error indicating a network resource is not available. Value = 11
      • ERROR_WOULD_BLOCK

        public static final ErrorType ERROR_WOULD_BLOCK
        Error indicating a non-blocking resource would block but did not; retry later. Value = 12
      • ERROR_CONNECTION_RESET

        public static final ErrorType ERROR_CONNECTION_RESET
        Connection reset by the server. Value = 13
      • ERROR_CONNECTION_ABORTED

        public static final ErrorType ERROR_CONNECTION_ABORTED
        Software caused the connection to abort. No FDs available or an unknown error occurred. Value = 14
      • ERROR_NOT_CONNECTED

        public static final ErrorType ERROR_NOT_CONNECTED
        Not connected. Value = 15
      • ERROR_DEVICE_DISCONNECTED

        public static final ErrorType ERROR_DEVICE_DISCONNECTED
        Device, such as a mic or camera, lost its connection. Value = 16
      • END_OF_FILE

        public static final ErrorType END_OF_FILE
        Connection has ended. Value = 17
      • ERROR_WRONG_THREAD

        public static final ErrorType ERROR_WRONG_THREAD
        Call made on the wrong thread. You must make API calls from the thread you created the BroadcastSession on. Value = 18
      • ERROR_TYPE_UNKNOWN

        public static final ErrorType ERROR_TYPE_UNKNOWN
        Error type unknown when using fromInt(), where the argument was out of range of this enum. Value = 19
    • Method Detail

      • values

        public static ErrorType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ErrorType c : ErrorType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ErrorType valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getErrorCode

        public int getErrorCode()
      • fromInt

        public static ErrorType fromInt​(int code)