Enum 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.

    8.3.2. Syntax

    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 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 name
        NullPointerException - if the argument is null