public class

RestClientException

extends NestedRuntimeException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ org.springframework.core.NestedRuntimeException
           ↳ org.springframework.web.client.RestClientException
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

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

Summary

Public Constructors
RestClientException(String msg)
Construct a new instance of HttpClientException with the given message.
RestClientException(String msg, Throwable ex)
Construct a new instance of HttpClientException with the given message and exception.
[Expand]
Inherited Methods
From class org.springframework.core.NestedRuntimeException
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public RestClientException (String msg)

Construct a new instance of HttpClientException with the given message.

Parameters
msg the message

public RestClientException (String msg, Throwable ex)

Construct a new instance of HttpClientException with the given message and exception.

Parameters
msg the message
ex the exception