org.springframework.web.client
Class RestClientException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.springframework.core.NestedRuntimeException
                  extended by org.springframework.web.client.RestClientException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
HttpStatusCodeException, ResourceAccessException

public class RestClientException
extends NestedRuntimeException

Base class for exceptions thrown by RestTemplate whenever it encounters client-side HTTP errors.

Since:
3.0
Author:
Arjen Poutsma
See Also:
Serialized Form

Constructor Summary
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.
 
Method Summary
 
Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getMessage, getMostSpecificCause, getRootCause
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RestClientException

public RestClientException(java.lang.String msg)
Construct a new instance of HttpClientException with the given message.

Parameters:
msg - the message

RestClientException

public RestClientException(java.lang.String msg,
                           java.lang.Throwable ex)
Construct a new instance of HttpClientException with the given message and exception.

Parameters:
msg - the message
ex - the exception