public class HttpServerErrorException extends HttpStatusCodeException
DefaultResponseErrorHandler, 
Serialized Form| Constructor and Description | 
|---|
| HttpServerErrorException(HttpStatus statusCode)Construct a new instance of  HttpServerErrorExceptionbased on anHttpStatus. | 
| HttpServerErrorException(HttpStatus statusCode,
                        String statusText)Construct a new instance of  HttpServerErrorExceptionbased on anHttpStatusand status text. | 
| HttpServerErrorException(HttpStatus statusCode,
                        String statusText,
                        byte[] responseBody,
                        Charset responseCharset)Construct a new instance of  HttpServerErrorExceptionbased on anHttpStatus, status text, and response body content. | 
| HttpServerErrorException(HttpStatus statusCode,
                        String statusText,
                        HttpHeaders responseHeaders,
                        byte[] responseBody,
                        Charset responseCharset)Construct a new instance of  HttpServerErrorExceptionbased on aHttpStatus, status text, and response body content. | 
getStatusCodegetRawStatusCode, getResponseBodyAsByteArray, getResponseBodyAsString, getResponseHeaders, getStatusTextcontains, getMessage, getMostSpecificCause, getRootCauseaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic HttpServerErrorException(HttpStatus statusCode)
HttpServerErrorException based on an
 HttpStatus.statusCode - the status codepublic HttpServerErrorException(HttpStatus statusCode, String statusText)
HttpServerErrorException based on an
 HttpStatus and status text.statusCode - the status codestatusText - the status textpublic HttpServerErrorException(HttpStatus statusCode, String statusText, byte[] responseBody, Charset responseCharset)
HttpServerErrorException based on an
 HttpStatus, status text, and response body content.statusCode - the status codestatusText - the status textresponseBody - the response body content, may be nullresponseCharset - the response body charset, may be nullpublic HttpServerErrorException(HttpStatus statusCode, String statusText, HttpHeaders responseHeaders, byte[] responseBody, Charset responseCharset)
HttpServerErrorException based on a
 HttpStatus, status text, and response body content.statusCode - the status codestatusText - the status textresponseHeaders - the response headers, may be nullresponseBody - the response body content, may be nullresponseCharset - the response body charset, may be null