Class RestApiResponseErrorHandler

java.lang.Object
org.bremersee.exception.RestApiResponseErrorHandler
All Implemented Interfaces:
org.springframework.web.client.ResponseErrorHandler

public class RestApiResponseErrorHandler extends Object implements org.springframework.web.client.ResponseErrorHandler
The rest api response error handler.
Author:
Christian Bremer
  • Constructor Details

    • RestApiResponseErrorHandler

      public RestApiResponseErrorHandler()
      Instantiates a new rest api response error handler.
    • RestApiResponseErrorHandler

      public RestApiResponseErrorHandler(RestApiExceptionParser restApiExceptionParser)
      Instantiates a new rest api response error handler.
      Parameters:
      restApiExceptionParser - the rest api exception parser
  • Method Details

    • hasError

      public boolean hasError(@NonNull org.springframework.http.client.ClientHttpResponse response) throws IOException
      Specified by:
      hasError in interface org.springframework.web.client.ResponseErrorHandler
      Throws:
      IOException
    • handleError

      public void handleError(@NonNull org.springframework.http.client.ClientHttpResponse response) throws IOException
      Specified by:
      handleError in interface org.springframework.web.client.ResponseErrorHandler
      Throws:
      IOException