public class HttpClientResponseException extends HttpClientException implements HttpResponseProvider
Constructor and Description |
---|
HttpClientResponseException(String message,
HttpResponse<?> response) |
HttpClientResponseException(String message,
Throwable cause,
HttpResponse<?> response) |
HttpClientResponseException(String message,
Throwable cause,
HttpResponse<?> response,
HttpClientErrorDecoder errorDecoder) |
Modifier and Type | Method and Description |
---|---|
String |
getMessage() |
HttpResponse<?> |
getResponse() |
HttpStatus |
getStatus() |
getServiceId, setServiceId
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public HttpClientResponseException(String message, HttpResponse<?> response)
message
- The messageresponse
- The Http responsepublic HttpClientResponseException(String message, Throwable cause, HttpResponse<?> response)
message
- The messagecause
- The throwableresponse
- The Http responsepublic HttpClientResponseException(String message, Throwable cause, HttpResponse<?> response, HttpClientErrorDecoder errorDecoder)
message
- The messagecause
- The throwableresponse
- The Http responseerrorDecoder
- The error decoderpublic String getMessage()
getMessage
in class HttpClientException
public HttpResponse<?> getResponse()
getResponse
in interface HttpResponseProvider
HttpResponse
public HttpStatus getStatus()
HttpStatus
returned