org.jivesoftware.smack.packet
Enum XMPPError.Type
java.lang.Object
java.lang.Enum<XMPPError.Type>
org.jivesoftware.smack.packet.XMPPError.Type
- All Implemented Interfaces:
- Serializable, Comparable<XMPPError.Type>
- Enclosing class:
- XMPPError
public static enum XMPPError.Type
- extends Enum<XMPPError.Type>
A class to represent the type of the Error. The types are:
- XMPPError.Type.WAIT - retry after waiting (the error is temporary)
- XMPPError.Type.CANCEL - do not retry (the error is unrecoverable)
- XMPPError.Type.MODIFY - retry after changing the data sent
- XMPPError.Type.AUTH - retry after providing credentials
- XMPPError.Type.CONTINUE - proceed (the condition was only a warning)
Method Summary |
static XMPPError.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static XMPPError.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they're declared. |
WAIT
public static final XMPPError.Type WAIT
CANCEL
public static final XMPPError.Type CANCEL
MODIFY
public static final XMPPError.Type MODIFY
AUTH
public static final XMPPError.Type AUTH
CONTINUE
public static final XMPPError.Type CONTINUE
values
public static final XMPPError.Type[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(XMPPError.Type c : XMPPError.Type.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static XMPPError.Type valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
Copyright © 2003-2007 Jive Software.