SipErrorCode
public
class
SipErrorCode
extends Object
java.lang.Object | |
↳ | android.net.sip.SipErrorCode |
This class was deprecated
in API level 31.
SipManager
and associated classes are no longer supported and
should not be used as the basis of future VOIP apps.
Defines error codes returned during SIP actions. For example, during
onRegistrationFailed()
,
onError()
,
onCallChangeFailed()
and
onRegistrationFailed()
.
Summary
Constants | |
---|---|
int |
CLIENT_ERROR
When some error occurs on the device, possibly due to a bug. |
int |
CROSS_DOMAIN_AUTHENTICATION
Cross-domain authentication required. |
int |
DATA_CONNECTION_LOST
When data connection is lost. |
int |
INVALID_CREDENTIALS
When invalid credentials are provided. |
int |
INVALID_REMOTE_URI
When the remote URI is not valid. |
int |
IN_PROGRESS
The client is in a transaction and cannot initiate a new one. |
int |
NO_ERROR
Not an error. |
int |
PEER_NOT_REACHABLE
When the peer is not reachable. |
int |
SERVER_ERROR
When server responds with an error. |
int |
SERVER_UNREACHABLE
When the server is not reachable. |
int |
SOCKET_ERROR
When some socket error occurs. |
int |
TIME_OUT
When the transaction gets timed out. |
int |
TRANSACTION_TERMINTED
When transaction is terminated unexpectedly. |
Public methods | |
---|---|
static
String
|
toString(int errorCode)
|
Inherited methods | |
---|---|
Constants
CLIENT_ERROR
public static final int CLIENT_ERROR
When some error occurs on the device, possibly due to a bug.
Constant Value: -4 (0xfffffffc)
CROSS_DOMAIN_AUTHENTICATION
public static final int CROSS_DOMAIN_AUTHENTICATION
Cross-domain authentication required.
Constant Value: -11 (0xfffffff5)
DATA_CONNECTION_LOST
public static final int DATA_CONNECTION_LOST
When data connection is lost.
Constant Value: -10 (0xfffffff6)
INVALID_CREDENTIALS
public static final int INVALID_CREDENTIALS
When invalid credentials are provided.
Constant Value: -8 (0xfffffff8)
INVALID_REMOTE_URI
public static final int INVALID_REMOTE_URI
When the remote URI is not valid.
Constant Value: -6 (0xfffffffa)
IN_PROGRESS
public static final int IN_PROGRESS
The client is in a transaction and cannot initiate a new one.
Constant Value: -9 (0xfffffff7)
NO_ERROR
public static final int NO_ERROR
Not an error.
Constant Value: 0 (0x00000000)
PEER_NOT_REACHABLE
public static final int PEER_NOT_REACHABLE
When the peer is not reachable.
Constant Value: -7 (0xfffffff9)
SERVER_ERROR
public static final int SERVER_ERROR
When server responds with an error.
Constant Value: -2 (0xfffffffe)
SERVER_UNREACHABLE
public static final int SERVER_UNREACHABLE
When the server is not reachable.
Constant Value: -12 (0xfffffff4)
SOCKET_ERROR
public static final int SOCKET_ERROR
When some socket error occurs.
Constant Value: -1 (0xffffffff)
TIME_OUT
public static final int TIME_OUT
When the transaction gets timed out.
Constant Value: -5 (0xfffffffb)
TRANSACTION_TERMINTED
public static final int TRANSACTION_TERMINTED
When transaction is terminated unexpectedly.
Constant Value: -3 (0xfffffffd)
Public methods
toString
public static String toString (int errorCode)
Parameters | |
---|---|
errorCode |
int |
Returns | |
---|---|
String |