Package org.springframework.web.client
Class RestClientException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.web.client.RestClientException
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- ResourceAccessException,- RestClientResponseException,- UnknownContentTypeException
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 SummaryConstructorsConstructorDescriptionConstruct a new instance ofRestClientExceptionwith the given message.RestClientException(String msg, Throwable ex) Construct a new instance ofRestClientExceptionwith the given message and exception.
- 
Method SummaryMethods inherited from class org.springframework.core.NestedRuntimeExceptioncontains, getMessage, getMostSpecificCause, getRootCauseMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
RestClientExceptionConstruct a new instance ofRestClientExceptionwith the given message.- Parameters:
- msg- the message
 
- 
RestClientExceptionConstruct a new instance ofRestClientExceptionwith the given message and exception.- Parameters:
- msg- the message
- ex- the exception
 
 
-