public class RestClientException extends NestedRuntimeException
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.Constructor and Description |
---|
RestClientException(String msg)
Construct a new instance of
RestClientException with the given message. |
RestClientException(String msg,
Throwable ex)
Construct a new instance of
RestClientException with the given message and
exception. |
contains, getMessage, getMostSpecificCause, getRootCause
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public RestClientException(String msg)
RestClientException
with the given message.msg
- the message