English | Site Directory

Android - An Open Handset Alliance Project

com.google.android.gtalkservice.ConnectionError

java.lang.Object
com.google.android.gtalkservice.ConnectionError

ConnectionError contains error codes that can occur while making a GTalk connection.

Summary

Constants

      Value  
int  AUTHENTICATION_FAILED  XMPP authentication failed   0x00000004 
int  CONNECTION_FAILED  connection failed   0x00000002 
int  NONE  no error   0x00000000 
int  NO_NETWORK  network not available   0x00000001 
int  SERVER_FAILED  server failed to respond   0x00000005 
int  UNKNOWN  unknown error   0x00000006 
int  UNKNOWN_HOST  unknown host, usually caused by DNS lookup failure   0x00000003 
String  UNKNOWN_HOST_ERROR_STR    "host-unknown" 

Public Methods

      static  boolean  isAuthenticationError(int error)
      static  boolean  isNetworkError(int error)
    final  static  String  toString(int state)
Methods inherited from class java.lang.Object

Details

Constants

public static final int AUTHENTICATION_FAILED

XMPP authentication failed
Constant Value: 4 (0x00000004)

public static final int CONNECTION_FAILED

connection failed
Constant Value: 2 (0x00000002)

public static final int NONE

no error
Constant Value: 0 (0x00000000)

public static final int NO_NETWORK

network not available
Constant Value: 1 (0x00000001)

public static final int SERVER_FAILED

server failed to respond
Constant Value: 5 (0x00000005)

public static final int UNKNOWN

unknown error
Constant Value: 6 (0x00000006)

public static final int UNKNOWN_HOST

unknown host, usually caused by DNS lookup failure
Constant Value: 3 (0x00000003)

public static final String UNKNOWN_HOST_ERROR_STR

Constant Value: "host-unknown"

Public Methods

public static boolean isAuthenticationError(int error)

public static boolean isNetworkError(int error)

public static final String toString(int state)

Build m5-rc15g - 14 May 2008 12:50