Class NoOpResponseErrorHandler

java.lang.Object
org.springframework.web.client.NoOpResponseErrorHandler
All Implemented Interfaces:
ResponseErrorHandler

public final class NoOpResponseErrorHandler extends Object implements ResponseErrorHandler
A basic, no operation ResponseErrorHandler implementation suitable for ignoring any error using the RestTemplate.

This implementation is not suitable with the RestClient as it uses a list of candidates where the first matching is invoked. If you want to disable default status handlers with the RestClient, consider registering a noop ErrorHandler with a predicate that matches all status code, see RestClient.Builder.defaultStatusHandler(Predicate, ErrorHandler).

Since:
6.1.7
Author:
Stephane Nicoll
  • Constructor Details

    • NoOpResponseErrorHandler

      public NoOpResponseErrorHandler()
  • Method Details