类 UnknownHttpStatusCodeException

所有已实现的接口:
Serializable

public class UnknownHttpStatusCodeException extends RestClientResponseException
Exception thrown when an unknown (or custom) HTTP status code is received.
从以下版本开始:
4.0
作者:
Rossen Stoyanchev
另请参阅:
  • 字段详细资料

    • serialVersionUID

      private static final long serialVersionUID
      另请参阅:
  • 构造器详细资料

    • UnknownHttpStatusCodeException

      public UnknownHttpStatusCodeException(int rawStatusCode, String statusText, @Nullable HttpHeaders responseHeaders, @Nullable byte[] responseBody, @Nullable Charset responseCharset)
      Construct a new instance of HttpStatusCodeException based on a status code, status text, and response body content.
      参数:
      rawStatusCode - the raw status code value
      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)
    • UnknownHttpStatusCodeException

      public UnknownHttpStatusCodeException(String message, int rawStatusCode, String statusText, @Nullable HttpHeaders responseHeaders, @Nullable byte[] responseBody, @Nullable Charset responseCharset)
      Construct a new instance of HttpStatusCodeException based on a status code, status text, and response body content.
      参数:
      rawStatusCode - the raw status code value
      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)