public class RestClientException extends NestedRuntimeException
RestTemplate
whenever it encounters
client-side HTTP errors.Constructor and Description |
---|
RestClientException(java.lang.String msg)
Construct a new instance of
HttpClientException with the given message. |
RestClientException(java.lang.String msg,
java.lang.Throwable ex)
Construct a new instance of
HttpClientException with the given message and
exception. |
contains, getMessage, getMostSpecificCause, getRootCause
public RestClientException(java.lang.String msg)
HttpClientException
with the given message.msg
- the messagepublic RestClientException(java.lang.String msg, java.lang.Throwable ex)
HttpClientException
with the given message and
exception.msg
- the messageex
- the exception