Class 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'
    • Constructor Detail

      • ErrorHandler

        public ErrorHandler()
    • Method Detail

      • 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