类 HttpClientErrorException

    • 构造器详细资料

      • HttpClientErrorException

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

        public HttpClientErrorException​(HttpStatus statusCode,
                                        String statusText,
                                        byte[] responseBody,
                                        Charset responseCharset)
        Construct a new instance of HttpClientErrorException 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)
      • HttpClientErrorException

        public HttpClientErrorException​(HttpStatus statusCode,
                                        String statusText,
                                        HttpHeaders responseHeaders,
                                        byte[] responseBody,
                                        Charset responseCharset)
        Construct a new instance of HttpClientErrorException 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