Class ProductRestTemplateFactory.CustomExceptionHandler

java.lang.Object
es.kukenan.smartfi.microservice.security.gateway.service.ProductRestTemplateFactory.CustomExceptionHandler
All Implemented Interfaces:
org.springframework.web.client.ResponseErrorHandler
Enclosing class:
ProductRestTemplateFactory

private static class ProductRestTemplateFactory.CustomExceptionHandler extends Object implements org.springframework.web.client.ResponseErrorHandler
Custom exception handler.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handleError(org.springframework.http.client.ClientHttpResponse response)
     
    boolean
    hasError(org.springframework.http.client.ClientHttpResponse response)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.web.client.ResponseErrorHandler

    handleError
  • Constructor Details

    • CustomExceptionHandler

      private CustomExceptionHandler()
  • Method Details

    • hasError

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

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