org.springframework.web.client
Class HttpClientErrorException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.web.client.RestClientException
org.springframework.web.client.HttpStatusCodeException
org.springframework.web.client.HttpClientErrorException
- All Implemented Interfaces:
- Serializable
public class HttpClientErrorException
- extends HttpStatusCodeException
Exception thrown when an HTTP 4xx is received.
- Since:
- 3.0
- Author:
- Arjen Poutsma
- See Also:
DefaultResponseErrorHandler
,
Serialized Form
HttpClientErrorException
public HttpClientErrorException(HttpStatus statusCode)
- Construct a new instance of
HttpClientErrorException
based on a HttpStatus
.
- Parameters:
statusCode
- the status code
HttpClientErrorException
public HttpClientErrorException(HttpStatus statusCode,
String statusText)
- Construct a new instance of
HttpClientErrorException
based on a HttpStatus
and status text.
- Parameters:
statusCode
- the status codestatusText
- the status text