Agora Java API Reference for Android
Static Public Member Functions | Public Attributes | List of all members
io.agora.rte.Constants.ErrorCode Enum Reference

RTE-related status codes and error codes. More...

Static Public Member Functions

static int getValue (ErrorCode type)
 
static ErrorCode fromInt (int v)
 

Public Attributes

 OK =(0)
 
 DEFAULT =(1)
 
 INVALID_ARGUMENT =(2)
 
 INVALID_OPERATION =(3)
 
 NETWORK_ERROR =(4)
 
 AUTHENTICATION_FAILED =(5)
 
 STREAM_NOT_FOUND =(6)
 

Detailed Description

RTE-related status codes and error codes.

Since
v4.4.0

Member Data Documentation

◆ OK

io.agora.rte.Constants.ErrorCode.OK =(0)

0: Operation succeeds.

◆ DEFAULT

io.agora.rte.Constants.ErrorCode.DEFAULT =(1)

1: General error (the cause of the error is not clearly categorized).

◆ INVALID_ARGUMENT

io.agora.rte.Constants.ErrorCode.INVALID_ARGUMENT =(2)

2: An invalid parameter is set in the method. For example, the parameter contains illegal characters, or the passed-in object is null. Please reset the parameter.

◆ INVALID_OPERATION

io.agora.rte.Constants.ErrorCode.INVALID_OPERATION =(3)

3: The current state does not support this operation, for example, the object has been destroyed or is invalid.

◆ NETWORK_ERROR

io.agora.rte.Constants.ErrorCode.NETWORK_ERROR =(4)

4: Network error. Please check your network.

◆ AUTHENTICATION_FAILED

io.agora.rte.Constants.ErrorCode.AUTHENTICATION_FAILED =(5)

5: Token authentication failed. Possible reasons include an invalid Token or an expired Token. Please check your Token.

◆ STREAM_NOT_FOUND

io.agora.rte.Constants.ErrorCode.STREAM_NOT_FOUND =(6)

6: Media stream not found. For example, after joining the channel, no media stream is received from the host for more than 10 seconds.