Class PermissionResponseErrorHandler

  • All Implemented Interfaces:
    org.springframework.web.client.ResponseErrorHandler

    public class PermissionResponseErrorHandler
    extends Object
    implements org.springframework.web.client.ResponseErrorHandler
    Returns HttpClientPermissionErrorException with the status code according to the code contained in ClientHttpResponse.
    Author:
    Marcos Paulo dos Santos
    See Also:
    ClientHttpResponse, HttpClientPermissionErrorException
    • Constructor Detail

      • PermissionResponseErrorHandler

        public PermissionResponseErrorHandler()
    • Method Detail

      • handleError

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

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