Class RestClientException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ResourceAccessException, RestClientResponseException, UnknownContentTypeException

public class RestClientException extends NestedRuntimeException
Base class for exceptions thrown by RestTemplate in case a request fails because of a server error response, as determined via ResponseErrorHandler.hasError(ClientHttpResponse), failure to decode the response, or a low level I/O error.
Since:
3.0
Author:
Arjen Poutsma
See Also:
  • Constructor Details

    • RestClientException

      public RestClientException(String msg)
      Construct a new instance of RestClientException with the given message.
      Parameters:
      msg - the message
    • RestClientException

      public RestClientException(String msg, Throwable ex)
      Construct a new instance of RestClientException with the given message and exception.
      Parameters:
      msg - the message
      ex - the exception