Enum Class Issues

java.lang.Object
java.lang.Enum<Issues>
io.github.venkateshamurthy.enums.examples.Issues
All Implemented Interfaces:
FaultCode, Serializable, Comparable<Issues>, Constable

public enum Issues extends Enum<Issues> implements FaultCode
An enum to model issues - just as an example
  • Enum Constant Details

    • UNKNOWN

      public static final Issues UNKNOWN
      Unknown error. The field name and the Enum.name() should match to see this close to an enum.
    • FILE_LOCKED_ERR

      public static final Issues FILE_LOCKED_ERR
      File already locked fault with a corresponding HttpStatus.LOCKED.
    • FILE_LNCK_ERR

      public static final Issues FILE_LNCK_ERR
      File checksum error with a corresponding HttpStatus.UNPROCESSABLE_ENTITY.
    • VALIDATION_ERR

      public static final Issues VALIDATION_ERR
      General validation error with a corresponding HttpStatus.BAD_REQUEST.
    • SERVER_ERR

      public static final Issues SERVER_ERR
      Server error with a corresponding HttpStatus.INTERNAL_SERVER_ERROR
  • Method Details

    • values

      public static Issues[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Issues valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null