public class HttpClientResponseException extends HttpClientException implements HttpResponseProvider
Constructor and Description |
---|
HttpClientResponseException(java.lang.String message,
HttpResponse<?> response) |
HttpClientResponseException(java.lang.String message,
java.lang.Throwable cause,
HttpResponse<?> response) |
HttpClientResponseException(java.lang.String message,
java.lang.Throwable cause,
HttpResponse<?> response,
HttpClientErrorDecoder errorDecoder) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMessage() |
HttpResponse<?> |
getResponse() |
HttpStatus |
getStatus() |
public HttpClientResponseException(java.lang.String message, HttpResponse<?> response)
message
- The messageresponse
- The Http responsepublic HttpClientResponseException(java.lang.String message, java.lang.Throwable cause, HttpResponse<?> response)
message
- The messagecause
- The throwableresponse
- The Http responsepublic HttpClientResponseException(java.lang.String message, java.lang.Throwable cause, HttpResponse<?> response, HttpClientErrorDecoder errorDecoder)
message
- The messagecause
- The throwableresponse
- The Http responseerrorDecoder
- The error decoderpublic java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public HttpResponse<?> getResponse()
getResponse
in interface HttpResponseProvider
HttpResponse
public HttpStatus getStatus()
HttpStatus
returned