类 HttpClientErrorException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
cn.taketoday.core.NestedRuntimeException
cn.taketoday.web.client.RestClientException
cn.taketoday.web.client.RestClientResponseException
cn.taketoday.web.client.HttpStatusCodeException
cn.taketoday.web.client.HttpClientErrorException
- 所有已实现的接口:
Serializable
- 直接已知子类:
HttpClientErrorException.BadRequest,HttpClientErrorException.Conflict,HttpClientErrorException.Forbidden,HttpClientErrorException.Gone,HttpClientErrorException.MethodNotAllowed,HttpClientErrorException.NotAcceptable,HttpClientErrorException.NotFound,HttpClientErrorException.TooManyRequests,HttpClientErrorException.Unauthorized,HttpClientErrorException.UnprocessableEntity,HttpClientErrorException.UnsupportedMediaType
Exception thrown when an HTTP 4xx is received.
- 从以下版本开始:
- 4.0
- 作者:
- Arjen Poutsma
- 另请参阅:
-
嵌套类概要
嵌套类修饰符和类型类说明static final classHttpClientErrorExceptionfor status HTTP 400 Bad Request.static final classHttpClientErrorExceptionfor status HTTP 409 Conflict.static final classHttpClientErrorExceptionfor status HTTP 403 Forbidden.static final classHttpClientErrorExceptionfor status HTTP 410 Gone.static final classHttpClientErrorExceptionfor status HTTP 405 Method Not Allowed.static final classHttpClientErrorExceptionfor status HTTP 406 Not Acceptable.static final classHttpClientErrorExceptionfor status HTTP 404 Not Found.static final classHttpClientErrorExceptionfor status HTTP 429 Too Many Requests.static final classHttpClientErrorExceptionfor status HTTP 401 Unauthorized.static final classHttpClientErrorExceptionfor status HTTP 422 Unprocessable Entity.static final classHttpClientErrorExceptionfor status HTTP 415 Unsupported Media Type. -
字段概要
字段 -
构造器概要
构造器构造器说明HttpClientErrorException(HttpStatusCode statusCode) Constructor with a status code only.HttpClientErrorException(HttpStatusCode statusCode, String statusText) Constructor with a status code and status text.HttpClientErrorException(HttpStatusCode statusCode, String statusText, byte[] body, Charset responseCharset) Constructor with a status code and status text, and content.HttpClientErrorException(HttpStatusCode statusCode, String statusText, HttpHeaders headers, byte[] body, Charset responseCharset) Constructor with a status code and status text, headers, and content.HttpClientErrorException(String message, HttpStatusCode statusCode, String statusText, HttpHeaders headers, byte[] body, Charset responseCharset) Constructor with a status code and status text, headers, and content, and an prepared message. -
方法概要
修饰符和类型方法说明static HttpClientErrorExceptioncreate(HttpStatusCode statusCode, String statusText, HttpHeaders headers, byte[] body, Charset charset) CreateHttpClientErrorExceptionor an HTTP status specific sub-class.static HttpClientErrorExceptioncreate(String message, HttpStatusCode statusCode, String statusText, HttpHeaders headers, byte[] body, Charset charset) Variant ofcreate(HttpStatusCode, String, HttpHeaders, byte[], Charset)with an optional prepared message.从类继承的方法 cn.taketoday.web.client.RestClientResponseException
getRawStatusCode, getResponseBodyAs, getResponseBodyAs, getResponseBodyAsByteArray, getResponseBodyAsString, getResponseBodyAsString, getResponseHeaders, getStatusCode, getStatusText, setBodyConvertFunction从类继承的方法 cn.taketoday.core.NestedRuntimeException
contains, getMostSpecificCause, getNestedMessage, getRootCause
-
字段详细资料
-
serialVersionUID
private static final long serialVersionUID- 另请参阅:
-
-
构造器详细资料
-
HttpClientErrorException
Constructor with a status code only. -
HttpClientErrorException
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.
-
-
方法详细资料
-
create
public static HttpClientErrorException create(HttpStatusCode statusCode, String statusText, HttpHeaders headers, byte[] body, @Nullable Charset charset) CreateHttpClientErrorExceptionor an HTTP status specific sub-class.- 从以下版本开始:
- 4.0
-
create
public static HttpClientErrorException create(@Nullable String message, HttpStatusCode statusCode, String statusText, HttpHeaders headers, byte[] body, @Nullable Charset charset) Variant ofcreate(HttpStatusCode, String, HttpHeaders, byte[], Charset)with an optional prepared message.
-