Class ErrorHandler
- java.lang.Object
-
- io.apicurio.registry.rest.client.impl.ErrorHandler
-
- All Implemented Interfaces:
io.apicurio.rest.client.error.RestClientErrorHandler
public class ErrorHandler extends Object implements io.apicurio.rest.client.error.RestClientErrorHandler
- Author:
- Carles Arnal 'carnalca@redhat.com'
-
-
Field Summary
Fields Modifier and Type Field Description static intFORBIDDEN_CODEstatic intTOO_MANY_REQUESTS_CODEstatic intUNAUTHORIZED_CODE
-
Constructor Summary
Constructors Constructor Description ErrorHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.apicurio.rest.client.error.ApicurioRestClientExceptionhandleErrorResponse(InputStream body, int statusCode)io.apicurio.rest.client.error.ApicurioRestClientExceptionparseError(Exception ex)io.apicurio.rest.client.error.ApicurioRestClientExceptionparseInputSerializingError(com.fasterxml.jackson.core.JsonProcessingException ex)
-
-
-
Field Detail
-
UNAUTHORIZED_CODE
public static final int UNAUTHORIZED_CODE
- See Also:
- Constant Field Values
-
FORBIDDEN_CODE
public static final int FORBIDDEN_CODE
- See Also:
- Constant Field Values
-
TOO_MANY_REQUESTS_CODE
public static final int TOO_MANY_REQUESTS_CODE
- See Also:
- Constant Field Values
-
-
Method Detail
-
handleErrorResponse
public io.apicurio.rest.client.error.ApicurioRestClientException handleErrorResponse(InputStream body, int statusCode)
- Specified by:
handleErrorResponsein interfaceio.apicurio.rest.client.error.RestClientErrorHandler
-
parseInputSerializingError
public io.apicurio.rest.client.error.ApicurioRestClientException parseInputSerializingError(com.fasterxml.jackson.core.JsonProcessingException ex)
- Specified by:
parseInputSerializingErrorin interfaceio.apicurio.rest.client.error.RestClientErrorHandler
-
parseError
public io.apicurio.rest.client.error.ApicurioRestClientException parseError(Exception ex)
- Specified by:
parseErrorin interfaceio.apicurio.rest.client.error.RestClientErrorHandler
-
-