Class ResponseErrorMapper
java.lang.Object
de.kaiserpfalzedv.services.eansearch.mapper.ResponseErrorMapper
- All Implemented Interfaces:
feign.codec.ErrorDecoder
ResponseErrorMapper -- Filters for HTTP Status codes of the API
The status codes are documented in the EAN-Search documentation, Appendix A. This mapper maps them to the runtime exceptions for a better handling.
- Since:
- 3.0.0 2023-01-17
- Author:
- klenkes74 <rlichti@kaiserpfalz-edv.de>
-
Nested Class Summary
Nested classes/interfaces inherited from interface feign.codec.ErrorDecoder
feign.codec.ErrorDecoder.Default, feign.codec.ErrorDecoder.RetryAfterDecoder
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription
-
Field Details
-
INVALID_OPERATION
public static final int INVALID_OPERATION- See Also:
-
INVALID_ACCESS_TOKEN
public static final int INVALID_ACCESS_TOKEN- See Also:
-
REQUEST_LIMIT_REACHED
public static final int REQUEST_LIMIT_REACHED- See Also:
-
INVALID_HTTP_METHOD
public static final int INVALID_HTTP_METHOD- See Also:
-
RATE_LIMIT_REACHED
public static final int RATE_LIMIT_REACHED- See Also:
-
-
Constructor Details
-
ResponseErrorMapper
public ResponseErrorMapper()
-
-
Method Details
-
decode
- Specified by:
decode
in interfacefeign.codec.ErrorDecoder
-