类 HttpStatusCodeException
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
- 所有已实现的接口:
Serializable
Abstract base class for exceptions based on an
HttpStatusCode.- 从以下版本开始:
- 4.0
- 作者:
- Arjen Poutsma, Chris Beams, Rossen Stoyanchev
- 另请参阅:
-
字段概要
字段 -
构造器概要
构造器限定符构造器说明protectedHttpStatusCodeException(HttpStatusCode statusCode) Construct a new instance with anHttpStatusCode.protectedHttpStatusCodeException(HttpStatusCode statusCode, String statusText) Construct a new instance with anHttpStatusCodeand status text.protectedHttpStatusCodeException(HttpStatusCode statusCode, String statusText, byte[] responseBody, Charset responseCharset) Construct instance with anHttpStatusCode, status text, and content.protectedHttpStatusCodeException(HttpStatusCode statusCode, String statusText, HttpHeaders responseHeaders, byte[] responseBody, Charset responseCharset) Construct instance with anHttpStatusCode, status text, content, and a response charset.protectedHttpStatusCodeException(String message, HttpStatusCode statusCode, String statusText, HttpHeaders responseHeaders, byte[] responseBody, Charset responseCharset) Construct instance with anHttpStatusCode, status text, content, and a response charset. -
方法概要
修饰符和类型方法说明private static StringgetMessage(HttpStatusCode statusCode, String statusText) private static Stringname(HttpStatusCode statusCode) 从类继承的方法 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- 另请参阅:
-
-
构造器详细资料
-
HttpStatusCodeException
Construct a new instance with anHttpStatusCode.- 参数:
statusCode- the status code
-
HttpStatusCodeException
Construct a new instance with anHttpStatusCodeand status text.- 参数:
statusCode- the status codestatusText- the status text
-
HttpStatusCodeException
protected HttpStatusCodeException(HttpStatusCode statusCode, String statusText, @Nullable byte[] responseBody, @Nullable Charset responseCharset) Construct instance with anHttpStatusCode, status text, and content.- 参数:
statusCode- the status codestatusText- the status textresponseBody- the response body content, may benullresponseCharset- the response body charset, may benull
-
HttpStatusCodeException
protected HttpStatusCodeException(HttpStatusCode statusCode, String statusText, @Nullable HttpHeaders responseHeaders, @Nullable byte[] responseBody, @Nullable Charset responseCharset) Construct instance with anHttpStatusCode, status text, content, and a response charset.- 参数:
statusCode- the status codestatusText- the status textresponseHeaders- the response headers, may benullresponseBody- the response body content, may benullresponseCharset- the response body charset, may benull
-
HttpStatusCodeException
protected HttpStatusCodeException(String message, HttpStatusCode statusCode, String statusText, @Nullable HttpHeaders responseHeaders, @Nullable byte[] responseBody, @Nullable Charset responseCharset) Construct instance with anHttpStatusCode, status text, content, and a response charset.- 参数:
message- the exception messagestatusCode- the status codestatusText- the status textresponseHeaders- the response headers, may benullresponseBody- the response body content, may benullresponseCharset- the response body charset, may benull
-
-
方法详细资料
-
name
-
getMessage
-