|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
public class HttpClientErrorException
Exception thrown when an HTTP 4xx is received.
DefaultResponseErrorHandler
,
Serialized FormConstructor Summary | |
---|---|
HttpClientErrorException(HttpStatus statusCode)
Construct a new instance of HttpClientErrorException based on an
HttpStatus . |
|
HttpClientErrorException(HttpStatus statusCode,
String statusText)
Construct a new instance of HttpClientErrorException based on an
HttpStatus and status text. |
|
HttpClientErrorException(HttpStatus statusCode,
String statusText,
byte[] responseBody,
Charset responseCharset)
Construct a new instance of HttpClientErrorException based on an
HttpStatus , status text, and response body content. |
|
HttpClientErrorException(HttpStatus statusCode,
String statusText,
HttpHeaders responseHeaders,
byte[] responseBody,
Charset responseCharset)
Construct a new instance of HttpClientErrorException based on an
HttpStatus , status text, and response body content. |
Method Summary |
---|
Methods inherited from class org.springframework.web.client.HttpStatusCodeException |
---|
getResponseBodyAsByteArray, getResponseBodyAsString, getResponseHeaders, getStatusCode, getStatusText |
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 |
---|
public HttpClientErrorException(HttpStatus statusCode)
HttpClientErrorException
based on an
HttpStatus
.
statusCode
- the status codepublic HttpClientErrorException(HttpStatus statusCode, String statusText)
HttpClientErrorException
based on an
HttpStatus
and status text.
statusCode
- the status codestatusText
- the status textpublic HttpClientErrorException(HttpStatus statusCode, String statusText, byte[] responseBody, Charset responseCharset)
HttpClientErrorException
based on an
HttpStatus
, status text, and response body content.
statusCode
- the status codestatusText
- the status textresponseBody
- the response body content, may be null
responseCharset
- the response body charset, may be null
public HttpClientErrorException(HttpStatus statusCode, String statusText, HttpHeaders responseHeaders, byte[] responseBody, Charset responseCharset)
HttpClientErrorException
based on an
HttpStatus
, status text, and response body content.
statusCode
- the status codestatusText
- the status textresponseHeaders
- the response headers, may be null
responseBody
- the response body content, may be null
responseCharset
- the response body charset, may be null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |