Package com.authlete.common.api
Enum AuthleteApiBasicImpl.ClientErrorHandling
- java.lang.Object
-
- java.lang.Enum<AuthleteApiBasicImpl.ClientErrorHandling>
-
- com.authlete.common.api.AuthleteApiBasicImpl.ClientErrorHandling
-
- All Implemented Interfaces:
Serializable
,Comparable<AuthleteApiBasicImpl.ClientErrorHandling>
- Enclosing class:
- AuthleteApiBasicImpl
protected static enum AuthleteApiBasicImpl.ClientErrorHandling extends Enum<AuthleteApiBasicImpl.ClientErrorHandling>
Strategy for handling client error responses (4xx)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PARSE_AS_RESPONSE
Parse 4xx response body as business responsePARSE_OR_DEFAULT_RESPONSE
Parse 4xx response body, return default response if parsing failsTHROW_EXCEPTION
Throw exception for 4xx (default behavior)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AuthleteApiBasicImpl.ClientErrorHandling
valueOf(String name)
Returns the enum constant of this type with the specified name.static AuthleteApiBasicImpl.ClientErrorHandling[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
THROW_EXCEPTION
public static final AuthleteApiBasicImpl.ClientErrorHandling THROW_EXCEPTION
Throw exception for 4xx (default behavior)
-
PARSE_AS_RESPONSE
public static final AuthleteApiBasicImpl.ClientErrorHandling PARSE_AS_RESPONSE
Parse 4xx response body as business response
-
PARSE_OR_DEFAULT_RESPONSE
public static final AuthleteApiBasicImpl.ClientErrorHandling PARSE_OR_DEFAULT_RESPONSE
Parse 4xx response body, return default response if parsing fails
-
-
Method Detail
-
values
public static AuthleteApiBasicImpl.ClientErrorHandling[] 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 (AuthleteApiBasicImpl.ClientErrorHandling c : AuthleteApiBasicImpl.ClientErrorHandling.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AuthleteApiBasicImpl.ClientErrorHandling 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
-
-