Package rocks.xmpp.core.stanza.model
Enum StanzaError.Type
- java.lang.Object
-
- java.lang.Enum<StanzaError.Type>
-
- rocks.xmpp.core.stanza.model.StanzaError.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<StanzaError.Type>
- Enclosing class:
- StanzaError
public static enum StanzaError.Type extends Enum<StanzaError.Type>
Represents a<error/>
'type' attribute.The "error-type" MUST be one of the following:- auth -- retry after providing credentials
- cancel -- do not retry (the error cannot be remedied)
- continue -- proceed (the condition was only a warning)
- modify -- retry after changing the data sent
- wait -- retry after waiting (the error is temporary)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTH
Retry after providing credentials.CANCEL
Do not retry (the error cannot be remedied).CONTINUE
Proceed (the condition was only a warning).MODIFY
Retry after changing the data sent.WAIT
Retry after waiting (the error is temporary).
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toString()
static StanzaError.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static StanzaError.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AUTH
public static final StanzaError.Type AUTH
Retry after providing credentials.
-
CANCEL
public static final StanzaError.Type CANCEL
Do not retry (the error cannot be remedied).
-
CONTINUE
public static final StanzaError.Type CONTINUE
Proceed (the condition was only a warning).
-
MODIFY
public static final StanzaError.Type MODIFY
Retry after changing the data sent.
-
WAIT
public static final StanzaError.Type WAIT
Retry after waiting (the error is temporary).
-
-
Method Detail
-
values
public static StanzaError.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (StanzaError.Type c : StanzaError.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StanzaError.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 nameNullPointerException
- if the argument is null
-
toString
public final String toString()
- Overrides:
toString
in classEnum<StanzaError.Type>
-
-