public
class
SipErrorCode
extends Object
java.lang.Object | |
↳ | android.net.sip.SipErrorCode |
Defines error codes returned during SIP actions. For example, during
onRegistrationFailed()
,
onError()
,
onCallChangeFailed()
and
onRegistrationFailed()
.
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 | |
---|---|
From
class
java.lang.Object
|
int CLIENT_ERROR
When some error occurs on the device, possibly due to a bug.
Constant Value: -4 (0xfffffffc)
int CROSS_DOMAIN_AUTHENTICATION
Cross-domain authentication required.
Constant Value: -11 (0xfffffff5)
int DATA_CONNECTION_LOST
When data connection is lost.
Constant Value: -10 (0xfffffff6)
int INVALID_CREDENTIALS
When invalid credentials are provided.
Constant Value: -8 (0xfffffff8)
int INVALID_REMOTE_URI
When the remote URI is not valid.
Constant Value: -6 (0xfffffffa)
int IN_PROGRESS
The client is in a transaction and cannot initiate a new one.
Constant Value: -9 (0xfffffff7)
int PEER_NOT_REACHABLE
When the peer is not reachable.
Constant Value: -7 (0xfffffff9)
int SERVER_ERROR
When server responds with an error.
Constant Value: -2 (0xfffffffe)
int SERVER_UNREACHABLE
When the server is not reachable.
Constant Value: -12 (0xfffffff4)
int SOCKET_ERROR
When some socket error occurs.
Constant Value: -1 (0xffffffff)
int TIME_OUT
When the transaction gets timed out.
Constant Value: -5 (0xfffffffb)
int TRANSACTION_TERMINTED
When transaction is terminated unexpectedly.
Constant Value: -3 (0xfffffffd)
String toString (int errorCode)
Parameters | |
---|---|
errorCode |
int
|
Returns | |
---|---|
String |