org.springframework.web.client
Class HttpServerErrorException
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.HttpServerErrorException
- All Implemented Interfaces:
- java.io.Serializable
public class HttpServerErrorException
- extends HttpStatusCodeException
Exception thrown when an HTTP 5xx is received.
- Since:
- 1.0
- Author:
- Arjen Poutsma, Roy Clarkson
- See Also:
DefaultResponseErrorHandler
,
Serialized Form
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 |
HttpServerErrorException
public HttpServerErrorException(HttpStatus statusCode)
- Construct a new instance of
HttpServerErrorException
based on a HttpStatus
.
- Parameters:
statusCode
- the status code
HttpServerErrorException
public HttpServerErrorException(HttpStatus statusCode,
java.lang.String statusText)
- Construct a new instance of
HttpServerErrorException
based on a HttpStatus
and status text.
- Parameters:
statusCode
- the status codestatusText
- the status text
HttpServerErrorException
public HttpServerErrorException(HttpStatus statusCode,
java.lang.String statusText,
byte[] responseBody,
java.nio.charset.Charset responseCharset)
- Construct a new instance of
HttpServerErrorException
based on a HttpStatus
, status text, and
response body content.
- Parameters:
statusCode
- the status codestatusText
- the status textresponseBody
- the response body content, may be null
responseCharset
- the response body charset, may be null