クラス UnknownHttpStatusCodeException
java.lang.ObjectSE
java.lang.ThrowableSE
java.lang.ExceptionSE
java.lang.RuntimeExceptionSE
org.springframework.core.NestedRuntimeException
org.springframework.web.client.RestClientException
org.springframework.web.client.RestClientResponseException
org.springframework.web.client.UnknownHttpStatusCodeException
- 実装されているすべてのインターフェース:
SerializableSE
未知の(またはカスタムの)HTTP ステータスコードを受信したときにスローされる例外。
- 導入:
- 3.2
- 作成者:
- Rossen Stoyanchev
- 関連事項:
コンストラクターの概要
コンストラクターコンストラクター説明UnknownHttpStatusCodeException(int rawStatusCode, StringSE statusText, @Nullable HttpHeaders responseHeaders, byte @Nullable [] responseBody, @Nullable CharsetSE responseCharset) ステータスコード、ステータステキスト、レスポンス本文の内容に基づいて、HttpStatusCodeExceptionの新しいインスタンスを構築します。UnknownHttpStatusCodeException(StringSE message, int rawStatusCode, StringSE statusText, @Nullable HttpHeaders responseHeaders, byte @Nullable [] responseBody, @Nullable CharsetSE responseCharset) ステータスコード、ステータステキスト、レスポンス本文の内容に基づいて、HttpStatusCodeExceptionの新しいインスタンスを構築します。メソッドのサマリー
クラス RestClientResponseException から継承されたメソッド
getResponseBodyAs, getResponseBodyAs, getResponseBodyAsByteArray, getResponseBodyAsString, getResponseBodyAsString, getResponseHeaders, getStatusCode, getStatusText, setBodyConvertFunctionクラス NestedRuntimeException から継承されたメソッド
contains, getMostSpecificCause, getRootCause
コンストラクターの詳細
UnknownHttpStatusCodeException
public UnknownHttpStatusCodeException(int rawStatusCode, StringSE statusText, @Nullable HttpHeaders responseHeaders, byte @Nullable [] responseBody, @Nullable CharsetSE responseCharset) ステータスコード、ステータステキスト、レスポンス本文の内容に基づいて、HttpStatusCodeExceptionの新しいインスタンスを構築します。- パラメーター:
rawStatusCode- 生のステータスコード値statusText- ステータステキストresponseHeaders- レスポンスヘッダー (nullの場合があります)responseBody- レスポンス本文のコンテンツ (nullの場合があります)responseCharset- レスポンス本体の文字セット (nullの場合があります)
UnknownHttpStatusCodeException
public UnknownHttpStatusCodeException(StringSE message, int rawStatusCode, StringSE statusText, @Nullable HttpHeaders responseHeaders, byte @Nullable [] responseBody, @Nullable CharsetSE responseCharset) ステータスコード、ステータステキスト、レスポンス本文の内容に基づいて、HttpStatusCodeExceptionの新しいインスタンスを構築します。- パラメーター:
rawStatusCode- 生のステータスコード値statusText- ステータステキストresponseHeaders- レスポンスヘッダー (nullの場合があります)responseBody- レスポンス本文のコンテンツ (nullの場合があります)responseCharset- レスポンス本体の文字セット (nullの場合があります)- 導入:
- 5.2.2