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 Details

  • Constructor Details

    • ErrorHandler

      public ErrorHandler()
  • Method Details

    • handleErrorResponse

      public io.apicurio.rest.client.error.ApicurioRestClientException handleErrorResponse(InputStream body, int statusCode)
      Specified by:
      handleErrorResponse in interface io.apicurio.rest.client.error.RestClientErrorHandler
    • parseInputSerializingError

      public io.apicurio.rest.client.error.ApicurioRestClientException parseInputSerializingError(com.fasterxml.jackson.core.JsonProcessingException ex)
      Specified by:
      parseInputSerializingError in interface io.apicurio.rest.client.error.RestClientErrorHandler
    • parseError

      public io.apicurio.rest.client.error.ApicurioRestClientException parseError(Exception ex)
      Specified by:
      parseError in interface io.apicurio.rest.client.error.RestClientErrorHandler