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 int
FORBIDDEN_CODE
static int
TOO_MANY_REQUESTS_CODE
static int
UNAUTHORIZED_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.ApicurioRestClientException
handleErrorResponse(InputStream body, int statusCode)
io.apicurio.rest.client.error.ApicurioRestClientException
parseError(Exception ex)
io.apicurio.rest.client.error.ApicurioRestClientException
parseInputSerializingError(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:
handleErrorResponse
in interfaceio.apicurio.rest.client.error.RestClientErrorHandler
-
parseInputSerializingError
public io.apicurio.rest.client.error.ApicurioRestClientException parseInputSerializingError(com.fasterxml.jackson.core.JsonProcessingException ex)
- Specified by:
parseInputSerializingError
in interfaceio.apicurio.rest.client.error.RestClientErrorHandler
-
parseError
public io.apicurio.rest.client.error.ApicurioRestClientException parseError(Exception ex)
- Specified by:
parseError
in interfaceio.apicurio.rest.client.error.RestClientErrorHandler
-
-