public static enum PacketError.Type extends Enum<PacketError.Type>
Error.Type.cancel -- do not retry (the error is unrecoverable).
Error.Type.continue_processing -- proceed
(the condition was only a warning). Equivalent to the XMPP error type
"continue".
Error.Type.modify -- retry after changing the data sent.
Eror.Type.auth -- retry after providing credentials.
Error.Type.wait -- retry after waiting (the error is temporary).
toXMPP() and fromXMPP(String) methods can be used to convert
between the enumertation values and XMPP error type strings.| Enum Constant and Description |
|---|
auth
Retry after providing credentials.
|
cancel
Do not retry (the error is unrecoverable).
|
continue_processing
Proceed (the condition was only a warning).
|
modify
Retry after changing the data sent.
|
wait
Retry after waiting (the error is temporary).
|
| Modifier and Type | Method and Description |
|---|---|
static PacketError.Type |
fromXMPP(String type)
Converts a String value into its Type representation.
|
String |
toXMPP()
Returns the error code as a valid XMPP error code string.
|
static PacketError.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PacketError.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PacketError.Type cancel
public static final PacketError.Type continue_processing
public static final PacketError.Type modify
public static final PacketError.Type auth
public static final PacketError.Type wait
public static PacketError.Type[] values()
for (PacketError.Type c : PacketError.Type.values()) System.out.println(c);
public static PacketError.Type valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static PacketError.Type fromXMPP(String type)
type - the String value.public String toXMPP()
Copyright © 2009–2017 Ignite Realtime. All rights reserved.