public class

SipErrorCode

extends Object
java.lang.Object
   ↳android.net.sip.SipErrorCode

Class Overview

Defines error codes returned during SIP actions. For example, during onRegistrationFailed(), onError(), onCallChangeFailed() and onRegistrationFailed().

Summary

Constants
intCLIENT_ERRORWhen some error occurs on the device, possibly due to a bug.
intCROSS_DOMAIN_AUTHENTICATIONCross-domain authentication required.
intDATA_CONNECTION_LOSTWhen data connection is lost.
intINVALID_CREDENTIALSWhen invalid credentials are provided.
intINVALID_REMOTE_URIWhen the remote URI is not valid.
intIN_PROGRESSThe client is in a transaction and cannot initiate a new one.
intNO_ERRORNot an error.
intPEER_NOT_REACHABLEWhen the peer is not reachable.
intSERVER_ERRORWhen server responds with an error.
intSERVER_UNREACHABLEWhen the server is not reachable.
intSOCKET_ERRORWhen some socket error occurs.
intTIME_OUTWhen the transaction gets timed out.
intTRANSACTION_TERMINTEDWhen transaction is terminated unexpectedly.
Public Methods
static String toString(int errorCode)
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int CLIENT_ERROR

Since: API Level 9

When some error occurs on the device, possibly due to a bug.

Constant Value: -4 (0xfffffffc)

public static final int CROSS_DOMAIN_AUTHENTICATION

Since: API Level 9

Cross-domain authentication required.

Constant Value: -11 (0xfffffff5)

public static final int DATA_CONNECTION_LOST

Since: API Level 9

When data connection is lost.

Constant Value: -10 (0xfffffff6)

public static final int INVALID_CREDENTIALS

Since: API Level 9

When invalid credentials are provided.

Constant Value: -8 (0xfffffff8)

public static final int INVALID_REMOTE_URI

Since: API Level 9

When the remote URI is not valid.

Constant Value: -6 (0xfffffffa)

public static final int IN_PROGRESS

Since: API Level 9

The client is in a transaction and cannot initiate a new one.

Constant Value: -9 (0xfffffff7)

public static final int NO_ERROR

Since: API Level 9

Not an error.

Constant Value: 0 (0x00000000)

public static final int PEER_NOT_REACHABLE

Since: API Level 9

When the peer is not reachable.

Constant Value: -7 (0xfffffff9)

public static final int SERVER_ERROR

Since: API Level 9

When server responds with an error.

Constant Value: -2 (0xfffffffe)

public static final int SERVER_UNREACHABLE

Since: API Level 9

When the server is not reachable.

Constant Value: -12 (0xfffffff4)

public static final int SOCKET_ERROR

Since: API Level 9

When some socket error occurs.

Constant Value: -1 (0xffffffff)

public static final int TIME_OUT

Since: API Level 9

When the transaction gets timed out.

Constant Value: -5 (0xfffffffb)

public static final int TRANSACTION_TERMINTED

Since: API Level 9

When transaction is terminated unexpectedly.

Constant Value: -3 (0xfffffffd)

Public Methods

public static String toString (int errorCode)

Since: API Level 9