Package org.xmpp.packet
Enum PacketError.Type
- All Implemented Interfaces:
Serializable,Comparable<PacketError.Type>,java.lang.constant.Constable
- Enclosing class:
- PacketError
Error type. Valid types are:
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).
continue_processing. The
toXMPP() and fromXMPP(String) methods can be used to convert
between the enumertation values and XMPP error type strings.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRetry after providing credentials.Do not retry (the error is unrecoverable).Proceed (the condition was only a warning).Retry after changing the data sent.Retry after waiting (the error is temporary). -
Method Summary
Modifier and TypeMethodDescriptionstatic PacketError.TypeConverts a String value into its Type representation.toXMPP()Returns the error code as a valid XMPP error code string.static PacketError.TypeReturns 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.
-
Enum Constant Details
-
cancel
Do not retry (the error is unrecoverable). -
continue_processing
Proceed (the condition was only a warning). This represents the "continue" error code in XMPP; because "continue" is a reserved keyword in Java the enum name has been changed. -
modify
Retry after changing the data sent. -
auth
Retry after providing credentials. -
wait
Retry after waiting (the error is temporary).
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 nameNullPointerException- if the argument is null
-
fromXMPP
Converts a String value into its Type representation.- Parameters:
type- the String value.- Returns:
- the condition corresponding to the String.
-
toXMPP
Returns the error code as a valid XMPP error code string.- Returns:
- the XMPP error code value.
-