Enum HttpError
- java.lang.Object
-
- java.lang.Enum<HttpError>
-
- io.inugami.commons.connectors.exceptions.HttpError
-
- All Implemented Interfaces:
ErrorCode
,Serializable
,Comparable<HttpError>
public enum HttpError extends Enum<HttpError> implements ErrorCode
-
-
Enum Constant Summary
Enum Constants Enum Constant Description REQUEST_REQUIRE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorCode
getCurrentErrorCode()
static HttpError
valueOf(String name)
Returns the enum constant of this type with the specified name.static HttpError[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface io.inugami.api.exceptions.ErrorCode
addDetail, getCategory, getErrorCode, getErrorHandler, getErrorType, getField, getMessage, getMessageDetail, getPayload, getStatusCode, getUrl, isExploitationError, isRetryable, isRollbackRequire, toBuilder
-
-
-
-
Enum Constant Detail
-
REQUEST_REQUIRE
public static final HttpError REQUEST_REQUIRE
-
-
Method Detail
-
values
public static HttpError[] 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 (HttpError c : HttpError.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HttpError 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
-
getCurrentErrorCode
public ErrorCode getCurrentErrorCode()
- Specified by:
getCurrentErrorCode
in interfaceErrorCode
-
-