Top Description Fields Constructors Methods
org.springframework.web.client

public Class RestClientException

extends NestedRuntimeException
Class Inheritance
Known Direct Subclasses
org.springframework.web.client.RestClientResponseException, org.springframework.web.client.UnknownContentTypeException, org.springframework.web.client.ResourceAccessException
Imports
org.springframework.core.NestedRuntimeException, org.springframework.http.client.ClientHttpResponse

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.
Author
Arjen Poutsma
Since
3.0

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
RestClientException(String
the message
msg
)

Construct a new instance of RestClientException with the given message.

public
RestClientException(String
the message
msg
,
Throwable
the exception
ex
)

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

Method Summary

Inherited from org.springframework.core.NestedRuntimeException:
containsgetMostSpecificCausegetRootCause

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.springframework.core.NestedRuntimeException.serialVersionUID.

Constructor Detail

RestClientExceptionback to summary
public RestClientException(String msg)

Construct a new instance of RestClientException with the given message.

Parameters
msg:String

the message

RestClientExceptionback to summary
public RestClientException(String msg, Throwable ex)

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

Parameters
msg:String

the message

ex:Throwable

the exception