ImErrorInfopublic class ImErrorInfo extends Object implements Serializable, android.os.ParcelableRepresents 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.
mCode = code;
mDescription = description;
| public ImErrorInfo(android.os.Parcel source)
mCode = source.readInt();
mDescription = source.readString();
|
Methods Summary |
---|
public int | describeContents()
return 0;
| public int | getCode()Gets the error code.
return mCode;
| public java.lang.String | getDescription()Gets the description of the error.
return mDescription;
| public java.lang.String | toString()
return mCode + " - " + mDescription;
| public void | writeToParcel(android.os.Parcel dest, int flags)
dest.writeInt(mCode);
dest.writeString(mDescription);
|
|