FileDocCategorySizeDatePackage
ImErrorInfo.javaAPI DocAndroid 1.5 API3659Wed May 06 22:42:46 BST 2009com.android.im.engine

ImErrorInfo

public class ImErrorInfo extends Object implements Serializable, android.os.Parcelable
Represents a generic error returned from the server. The IM servers can respond to an error condition with an error code and possibly a description of the problem. Different IM protocol may have different set of error codes and descriptions.

Fields Summary
public static final int
NO_ERROR
public static final int
ILLEGAL_CONTACT_LIST_MANAGER_STATE
public static final int
CONTACT_LIST_EXISTS
public static final int
CONTACT_LIST_NOT_FOUND
public static final int
INVALID_HOST_NAME
public static final int
UNKNOWN_SERVER
public static final int
CANT_CONNECT_TO_SERVER
public static final int
INVALID_USERNAME
public static final int
INVALID_SESSION_CONTEXT
public static final int
UNKNOWN_LOGIN_ERROR
public static final int
NOT_LOGGED_IN
public static final int
UNSUPPORTED_CIR_CHANNEL
public static final int
ILLEGAL_CONTACT_ADDRESS
public static final int
CONTACT_EXISTS_IN_LIST
public static final int
CANT_ADD_BLOCKED_CONTACT
public static final int
PARSER_ERROR
public static final int
SERIALIZER_ERROR
public static final int
NETWORK_ERROR
public static final int
ILLEGAL_SERVER_RESPONSE
public static final int
UNKNOWN_ERROR
private int
mCode
private String
mDescription
public static final Parcelable.Creator
CREATOR
Constructors Summary
public ImErrorInfo(int code, String description)
Creates a new error with specified code and description.

param
code the error code.
param
description the description of the error.


                              
         
        mCode = code;
        mDescription = description;
    
public ImErrorInfo(android.os.Parcel source)

        mCode = source.readInt();
        mDescription = source.readString();
    
Methods Summary
public intdescribeContents()

        return 0;
    
public intgetCode()
Gets the error code.

return
the error code.

        return mCode;
    
public java.lang.StringgetDescription()
Gets the description of the error.

return
the description of the error.

        return mDescription;
    
public java.lang.StringtoString()

        return mCode + " - " + mDescription;
    
public voidwriteToParcel(android.os.Parcel dest, int flags)

        dest.writeInt(mCode);
        dest.writeString(mDescription);