public class HttpServerErrorException extends HttpStatusCodeException
DefaultResponseErrorHandler,
Serialized Form| Modifier and Type | Class and Description |
|---|---|
static class |
HttpServerErrorException.BadGateway
HttpServerErrorException for status HTTP HTTP 502 Bad Gateway. |
static class |
HttpServerErrorException.GatewayTimeout
HttpServerErrorException for status HTTP 504 Gateway Timeout. |
static class |
HttpServerErrorException.InternalServerError
HttpServerErrorException for status HTTP 500 Internal Server Error. |
static class |
HttpServerErrorException.NotImplemented
HttpServerErrorException for status HTTP 501 Not Implemented. |
static class |
HttpServerErrorException.ServiceUnavailable
HttpServerErrorException for status HTTP 503 Service Unavailable. |
| Constructor and Description |
|---|
HttpServerErrorException(HttpStatus statusCode)
Constructor with a status code only.
|
HttpServerErrorException(HttpStatus statusCode,
java.lang.String statusText)
Constructor with a status code and status text.
|
HttpServerErrorException(HttpStatus statusCode,
java.lang.String statusText,
byte[] body,
java.nio.charset.Charset charset)
Constructor with a status code and status text, and content.
|
HttpServerErrorException(HttpStatus statusCode,
java.lang.String statusText,
HttpHeaders headers,
byte[] body,
java.nio.charset.Charset charset)
Constructor with a status code and status text, headers, and content.
|
| Modifier and Type | Method and Description |
|---|---|
static HttpServerErrorException |
create(HttpStatus statusCode,
java.lang.String statusText,
HttpHeaders headers,
byte[] body,
java.nio.charset.Charset charset)
Create an
HttpServerErrorException or an HTTP status specific sub-class. |
getStatusCodegetRawStatusCode, getResponseBodyAsByteArray, getResponseBodyAsString, getResponseHeaders, getStatusTextcontains, getMessage, getMostSpecificCause, getRootCausepublic HttpServerErrorException(HttpStatus statusCode)
public HttpServerErrorException(HttpStatus statusCode, java.lang.String statusText)
public HttpServerErrorException(HttpStatus statusCode, java.lang.String statusText, @Nullable byte[] body, @Nullable java.nio.charset.Charset charset)
public HttpServerErrorException(HttpStatus statusCode, java.lang.String statusText, @Nullable HttpHeaders headers, @Nullable byte[] body, @Nullable java.nio.charset.Charset charset)
public static HttpServerErrorException create(HttpStatus statusCode, java.lang.String statusText, HttpHeaders headers, byte[] body, @Nullable java.nio.charset.Charset charset)
HttpServerErrorException or an HTTP status specific sub-class.