Enum FailureType

    • Enum Constant Detail

      • UNPROCESSABLE_ENTITY

        public static final FailureType UNPROCESSABLE_ENTITY
        Indicates that the server understands the content of this entity and, apparently, all statically required attributes is present. However, but it was unable to process the contained instructions.
      • MALFORMED_ENTITY

        public static final FailureType MALFORMED_ENTITY
        Indicates that the server cannot or will not process the entity due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).
      • OTHER

        public static final FailureType OTHER
        Other failure reason
    • Constructor Detail

      • FailureType

        private FailureType()
    • Method Detail

      • values

        public static FailureType[] 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 (FailureType c : FailureType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static FailureType 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