Package com.yahoo.restapi
Enum ErrorResponse.errorCodes
- java.lang.Object
-
- java.lang.Enum<ErrorResponse.errorCodes>
-
- com.yahoo.restapi.ErrorResponse.errorCodes
-
- All Implemented Interfaces:
Serializable
,Comparable<ErrorResponse.errorCodes>
- Enclosing class:
- ErrorResponse
public static enum ErrorResponse.errorCodes extends Enum<ErrorResponse.errorCodes>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BAD_REQUEST
CONFLICT
FORBIDDEN
INTERNAL_SERVER_ERROR
METHOD_NOT_ALLOWED
NOT_FOUND
UNAUTHORIZED
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ErrorResponse.errorCodes
valueOf(String name)
Returns the enum constant of this type with the specified name.static ErrorResponse.errorCodes[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NOT_FOUND
public static final ErrorResponse.errorCodes NOT_FOUND
-
BAD_REQUEST
public static final ErrorResponse.errorCodes BAD_REQUEST
-
FORBIDDEN
public static final ErrorResponse.errorCodes FORBIDDEN
-
METHOD_NOT_ALLOWED
public static final ErrorResponse.errorCodes METHOD_NOT_ALLOWED
-
INTERNAL_SERVER_ERROR
public static final ErrorResponse.errorCodes INTERNAL_SERVER_ERROR
-
UNAUTHORIZED
public static final ErrorResponse.errorCodes UNAUTHORIZED
-
CONFLICT
public static final ErrorResponse.errorCodes CONFLICT
-
-
Method Detail
-
values
public static ErrorResponse.errorCodes[] 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 (ErrorResponse.errorCodes c : ErrorResponse.errorCodes.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ErrorResponse.errorCodes 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
-
-