Package io.jans.configapi.core.util
Enum ApiErrorResponse
- java.lang.Object
-
- java.lang.Enum<ApiErrorResponse>
-
- io.jans.configapi.core.util.ApiErrorResponse
-
- All Implemented Interfaces:
Serializable
,Comparable<ApiErrorResponse>
public enum ApiErrorResponse extends Enum<ApiErrorResponse>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CREATE_USER_ERROR
FETCH_DATA_ERROR
GENERAL_ERROR
MISSING_ATTRIBUTES
SAME_NAME_EMAIL_EXISTS_ERROR
SAME_NAME_USER_EXISTS_ERROR
UPDATE_USER_ERROR
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDescription()
String
toString()
static ApiErrorResponse
valueOf(String name)
Returns the enum constant of this type with the specified name.static ApiErrorResponse[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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 Detail
-
values
public static ApiErrorResponse[] 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 (ApiErrorResponse c : ApiErrorResponse.values()) System.out.println(c);
- 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 nameNullPointerException
- if the argument is null
-
getDescription
public String getDescription()
-
toString
public String toString()
- Overrides:
toString
in classEnum<ApiErrorResponse>
-
-