Class RestApiExceptionParserImpl

    • Constructor Detail

      • RestApiExceptionParserImpl

        public RestApiExceptionParserImpl()
      • RestApiExceptionParserImpl

        public RestApiExceptionParserImpl​(org.springframework.http.converter.json.Jackson2ObjectMapperBuilder objectMapperBuilder)
        Instantiates a new rest api exception parser.
        Parameters:
        objectMapperBuilder - the object mapper builder
      • RestApiExceptionParserImpl

        public RestApiExceptionParserImpl​(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
                                          com.fasterxml.jackson.dataformat.xml.XmlMapper xmlMapper)
    • Method Detail

      • parseException

        public org.bremersee.exception.model.RestApiException parseException​(@Nullable
                                                                             String response,
                                                                             @Nullable
                                                                             Map<String,​? extends Collection<String>> headers)
        Description copied from interface: ExceptionParser
        Parse exception.
        Specified by:
        parseException in interface ExceptionParser<org.bremersee.exception.model.RestApiException>
        Parameters:
        response - the response
        headers - the headers
        Returns:
        the parsed exception