类 HttpServerErrorException

    • 构造器详细资料

      • HttpServerErrorException

        public HttpServerErrorException​(HttpStatus statusCode,
                                        String statusText)
        Construct a new instance of HttpServerErrorException based on an HttpStatus and status text.
        参数:
        statusCode - the status code
        statusText - the status text
      • HttpServerErrorException

        public HttpServerErrorException​(HttpStatus statusCode,
                                        String statusText,
                                        byte[] responseBody,
                                        Charset responseCharset)
        Construct a new instance of HttpServerErrorException based on an HttpStatus, status text, and response body content.
        参数:
        statusCode - the status code
        statusText - the status text
        responseBody - the response body content (may be null)
        responseCharset - the response body charset (may be null)
        从以下版本开始:
        3.0.5
      • HttpServerErrorException

        public HttpServerErrorException​(HttpStatus statusCode,
                                        String statusText,
                                        HttpHeaders responseHeaders,
                                        byte[] responseBody,
                                        Charset responseCharset)
        Construct a new instance of HttpServerErrorException based on an HttpStatus, status text, and response body content.
        参数:
        statusCode - the status code
        statusText - the status text
        responseHeaders - the response headers (may be null)
        responseBody - the response body content (may be null)
        responseCharset - the response body charset (may be null)
        从以下版本开始:
        3.1.2