FileDocCategorySizeDatePackage
SipErrorCode.javaAPI DocAndroid 5.1 API3541Thu Mar 12 22:22:52 GMT 2015android.net.sip

SipErrorCode

public class SipErrorCode extends Object
Defines error codes returned during SIP actions. For example, during {@link SipRegistrationListener#onRegistrationFailed onRegistrationFailed()}, {@link SipSession.Listener#onError onError()}, {@link SipSession.Listener#onCallChangeFailed onCallChangeFailed()} and {@link SipSession.Listener#onRegistrationFailed onRegistrationFailed()}.

Fields Summary
public static final int
NO_ERROR
Not an error.
public static final int
SOCKET_ERROR
When some socket error occurs.
public static final int
SERVER_ERROR
When server responds with an error.
public static final int
TRANSACTION_TERMINTED
When transaction is terminated unexpectedly.
public static final int
CLIENT_ERROR
When some error occurs on the device, possibly due to a bug.
public static final int
TIME_OUT
When the transaction gets timed out.
public static final int
INVALID_REMOTE_URI
When the remote URI is not valid.
public static final int
PEER_NOT_REACHABLE
When the peer is not reachable.
public static final int
INVALID_CREDENTIALS
When invalid credentials are provided.
public static final int
IN_PROGRESS
The client is in a transaction and cannot initiate a new one.
public static final int
DATA_CONNECTION_LOST
When data connection is lost.
public static final int
CROSS_DOMAIN_AUTHENTICATION
Cross-domain authentication required.
public static final int
SERVER_UNREACHABLE
When the server is not reachable.
Constructors Summary
private SipErrorCode()

    
Methods Summary
public static java.lang.StringtoString(int errorCode)


         
        switch (errorCode) {
            case NO_ERROR:
                return "NO_ERROR";
            case SOCKET_ERROR:
                return "SOCKET_ERROR";
            case SERVER_ERROR:
                return "SERVER_ERROR";
            case TRANSACTION_TERMINTED:
                return "TRANSACTION_TERMINTED";
            case CLIENT_ERROR:
                return "CLIENT_ERROR";
            case TIME_OUT:
                return "TIME_OUT";
            case INVALID_REMOTE_URI:
                return "INVALID_REMOTE_URI";
            case PEER_NOT_REACHABLE:
                return "PEER_NOT_REACHABLE";
            case INVALID_CREDENTIALS:
                return "INVALID_CREDENTIALS";
            case IN_PROGRESS:
                return "IN_PROGRESS";
            case DATA_CONNECTION_LOST:
                return "DATA_CONNECTION_LOST";
            case CROSS_DOMAIN_AUTHENTICATION:
                return "CROSS_DOMAIN_AUTHENTICATION";
            case SERVER_UNREACHABLE:
                return "SERVER_UNREACHABLE";
            default:
                return "UNKNOWN";
        }