Package io.inugami.api.exceptions
Interface ErrorCode
-
- All Known Implementing Classes:
DefaultErrorCode
public interface ErrorCode
-
-
Field Summary
Fields Modifier and Type Field Description static StringCATEGORYstatic StringDOMAINstatic StringERROR_CODEstatic StringERROR_HANDLERstatic StringERROR_TYPEstatic StringEXPLOITATION_ERRORstatic StringFIELDstatic List<String>KEYS_SETstatic StringMESSAGEstatic StringMESSAGE_DETAILstatic StringPAYLOADstatic StringRETRYABLEstatic StringROLLBACKstatic StringSTATUS_CODEstatic StringSUB_DOMAINstatic StringURL
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ErrorCodeaddDetail(String detail, Object... values)default StringgetCategory()ErrorCodegetCurrentErrorCode()default StringgetDomain()default StringgetErrorCode()default BiConsumer<String,Exception>getErrorHandler()default StringgetErrorType()default StringgetField()default StringgetMessage()default StringgetMessageDetail()default StringgetPayload()default intgetStatusCode()default StringgetSubDomain()default StringgetUrl()default booleanisExploitationError()default booleanisRetryable()default booleanisRollbackRequire()default List<String>keysSet()default DefaultErrorCode.DefaultErrorCodeBuildertoBuilder()default Map<String,Serializable>toMap()
-
-
-
Field Detail
-
STATUS_CODE
static final String STATUS_CODE
- See Also:
- Constant Field Values
-
ERROR_CODE
static final String ERROR_CODE
- See Also:
- Constant Field Values
-
MESSAGE
static final String MESSAGE
- See Also:
- Constant Field Values
-
MESSAGE_DETAIL
static final String MESSAGE_DETAIL
- See Also:
- Constant Field Values
-
ERROR_TYPE
static final String ERROR_TYPE
- See Also:
- Constant Field Values
-
PAYLOAD
static final String PAYLOAD
- See Also:
- Constant Field Values
-
EXPLOITATION_ERROR
static final String EXPLOITATION_ERROR
- See Also:
- Constant Field Values
-
ROLLBACK
static final String ROLLBACK
- See Also:
- Constant Field Values
-
RETRYABLE
static final String RETRYABLE
- See Also:
- Constant Field Values
-
FIELD
static final String FIELD
- See Also:
- Constant Field Values
-
URL
static final String URL
- See Also:
- Constant Field Values
-
CATEGORY
static final String CATEGORY
- See Also:
- Constant Field Values
-
DOMAIN
static final String DOMAIN
- See Also:
- Constant Field Values
-
SUB_DOMAIN
static final String SUB_DOMAIN
- See Also:
- Constant Field Values
-
ERROR_HANDLER
static final String ERROR_HANDLER
- See Also:
- Constant Field Values
-
-
Method Detail
-
getCurrentErrorCode
ErrorCode getCurrentErrorCode()
-
getStatusCode
default int getStatusCode()
-
getErrorCode
default String getErrorCode()
-
getMessage
default String getMessage()
-
getMessageDetail
default String getMessageDetail()
-
isExploitationError
default boolean isExploitationError()
-
getErrorType
default String getErrorType()
-
getDomain
default String getDomain()
-
getSubDomain
default String getSubDomain()
-
getPayload
default String getPayload()
-
getUrl
default String getUrl()
-
isRollbackRequire
default boolean isRollbackRequire()
-
isRetryable
default boolean isRetryable()
-
getErrorHandler
default BiConsumer<String,Exception> getErrorHandler()
-
getCategory
default String getCategory()
-
getField
default String getField()
-
toBuilder
default DefaultErrorCode.DefaultErrorCodeBuilder toBuilder()
-
toMap
default Map<String,Serializable> toMap()
-
-