类 HttpClientErrorException

所有已实现的接口:
Serializable
直接已知子类:
HttpClientErrorException.BadRequest, HttpClientErrorException.Conflict, HttpClientErrorException.Forbidden, HttpClientErrorException.Gone, HttpClientErrorException.MethodNotAllowed, HttpClientErrorException.NotAcceptable, HttpClientErrorException.NotFound, HttpClientErrorException.TooManyRequests, HttpClientErrorException.Unauthorized, HttpClientErrorException.UnprocessableEntity, HttpClientErrorException.UnsupportedMediaType

public class HttpClientErrorException extends HttpStatusCodeException
Exception thrown when an HTTP 4xx is received.
从以下版本开始:
4.0
作者:
Arjen Poutsma
另请参阅:
  • 字段详细资料

    • serialVersionUID

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

    • HttpClientErrorException

      public HttpClientErrorException(HttpStatusCode statusCode)
      Constructor with a status code only.
    • HttpClientErrorException

      public HttpClientErrorException(HttpStatusCode statusCode, String statusText)
      Constructor with a status code and status text.
    • HttpClientErrorException

      public HttpClientErrorException(HttpStatusCode statusCode, String statusText, @Nullable byte[] body, @Nullable Charset responseCharset)
      Constructor with a status code and status text, and content.
    • HttpClientErrorException

      public HttpClientErrorException(HttpStatusCode statusCode, String statusText, @Nullable HttpHeaders headers, @Nullable byte[] body, @Nullable Charset responseCharset)
      Constructor with a status code and status text, headers, and content.
    • HttpClientErrorException

      public HttpClientErrorException(String message, HttpStatusCode statusCode, String statusText, @Nullable HttpHeaders headers, @Nullable byte[] body, @Nullable Charset responseCharset)
      Constructor with a status code and status text, headers, and content, and an prepared message.
  • 方法详细资料