Enum FailureType

java.lang.Object
java.lang.Enum<FailureType>
kos.core.validation.FailureType
All Implemented Interfaces:
Serializable, Comparable<FailureType>, java.lang.constant.Constable

public enum FailureType extends Enum<FailureType>
  • Enum Constant Details

    • 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 Details

    • FailureType

      private FailureType()
  • Method Details

    • values

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

      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