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
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.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 Details
-
UNAUTHORIZED_CODE
public static final int UNAUTHORIZED_CODE- See Also:
-
FORBIDDEN_CODE
public static final int FORBIDDEN_CODE- See Also:
-
TOO_MANY_REQUESTS_CODE
public static final int TOO_MANY_REQUESTS_CODE- See Also:
-
-
Constructor Details
-
ErrorHandler
public ErrorHandler()
-
-
Method Details
-
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
- Specified by:
parseErrorin interfaceio.apicurio.rest.client.error.RestClientErrorHandler
-