类 UnknownHttpStatusCodeException
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.UnknownHttpStatusCodeException
- 所有已实现的接口:
Serializable
Exception thrown when an unknown (or custom) HTTP status code is received.
- 从以下版本开始:
- 4.0
- 作者:
- Rossen Stoyanchev
- 另请参阅:
-
字段概要
字段 -
构造器概要
构造器构造器说明UnknownHttpStatusCodeException(int rawStatusCode, String statusText, HttpHeaders responseHeaders, byte[] responseBody, Charset responseCharset) Construct a new instance ofHttpStatusCodeExceptionbased on a status code, status text, and response body content.UnknownHttpStatusCodeException(String message, int rawStatusCode, String statusText, HttpHeaders responseHeaders, byte[] responseBody, Charset responseCharset) Construct a new instance ofHttpStatusCodeExceptionbased on a status code, status text, and response body content. -
方法概要
从类继承的方法 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- 另请参阅:
-
-
构造器详细资料
-
UnknownHttpStatusCodeException
public UnknownHttpStatusCodeException(int rawStatusCode, String statusText, @Nullable HttpHeaders responseHeaders, @Nullable byte[] responseBody, @Nullable Charset responseCharset) Construct a new instance ofHttpStatusCodeExceptionbased on a status code, status text, and response body content.- 参数:
rawStatusCode- the raw status code valuestatusText- the status textresponseHeaders- the response headers (may benull)responseBody- the response body content (may benull)responseCharset- the response body charset (may benull)
-
UnknownHttpStatusCodeException
public UnknownHttpStatusCodeException(String message, int rawStatusCode, String statusText, @Nullable HttpHeaders responseHeaders, @Nullable byte[] responseBody, @Nullable Charset responseCharset) Construct a new instance ofHttpStatusCodeExceptionbased on a status code, status text, and response body content.- 参数:
rawStatusCode- the raw status code valuestatusText- the status textresponseHeaders- the response headers (may benull)responseBody- the response body content (may benull)responseCharset- the response body charset (may benull)
-