类 HttpStatusCodeException

    • 构造器详细资料

      • HttpStatusCodeException

        protected HttpStatusCodeException​(HttpStatus statusCode,
                                          String statusText,
                                          byte[] responseBody,
                                          Charset responseCharset)
        Construct instance with an HttpStatus, status text, and 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
      • HttpStatusCodeException

        protected HttpStatusCodeException​(HttpStatus statusCode,
                                          String statusText,
                                          HttpHeaders responseHeaders,
                                          byte[] responseBody,
                                          Charset responseCharset)
        Construct instance with an HttpStatus, status text, content, and a response charset.
        参数:
        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