Enum ApiErrorResponse

java.lang.Object
java.lang.Enum<ApiErrorResponse>
io.jans.configapi.core.util.ApiErrorResponse
All Implemented Interfaces:
Serializable, Comparable<ApiErrorResponse>, java.lang.constant.Constable

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

    • GENERAL_ERROR

      public static final ApiErrorResponse GENERAL_ERROR
    • MISSING_ATTRIBUTES

      public static final ApiErrorResponse MISSING_ATTRIBUTES
    • SAME_NAME_USER_EXISTS_ERROR

      public static final ApiErrorResponse SAME_NAME_USER_EXISTS_ERROR
    • SAME_NAME_EMAIL_EXISTS_ERROR

      public static final ApiErrorResponse SAME_NAME_EMAIL_EXISTS_ERROR
    • FETCH_DATA_ERROR

      public static final ApiErrorResponse FETCH_DATA_ERROR
    • CREATE_USER_ERROR

      public static final ApiErrorResponse CREATE_USER_ERROR
    • UPDATE_USER_ERROR

      public static final ApiErrorResponse UPDATE_USER_ERROR
  • Method Details

    • values

      public static ApiErrorResponse[] 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 ApiErrorResponse 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
    • getDescription

      public String getDescription()
    • toString

      public String toString()
      Overrides:
      toString in class Enum<ApiErrorResponse>