クラス 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, HttpHeaders responseHeaders, byte[] responseBody, CharsetSE responseCharset) ステータスコード、ステータステキスト、レスポンス本文の内容に基づいて、HttpStatusCodeException
の新しいインスタンスを構築します。UnknownHttpStatusCodeException
(StringSE message, int rawStatusCode, StringSE statusText, HttpHeaders responseHeaders, byte[] responseBody, CharsetSE responseCharset) ステータスコード、ステータステキスト、レスポンス本文の内容に基づいて、HttpStatusCodeException
の新しいインスタンスを構築します。方法の概要
クラス org.springframework.web.client.RestClientResponseException から継承されたメソッド
getRawStatusCode, getResponseBodyAs, getResponseBodyAs, getResponseBodyAsByteArray, getResponseBodyAsString, getResponseBodyAsString, getResponseHeaders, getStatusCode, getStatusText, setBodyConvertFunction
クラス org.springframework.core.NestedRuntimeException から継承されたメソッド
contains, getMostSpecificCause, getRootCause
クラス java.lang.ThrowableSE から継承されたメソッド
addSuppressedSE, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCauseSE, printStackTrace, printStackTraceSE, printStackTraceSE, setStackTraceSE, toString
コンストラクターの詳細
UnknownHttpStatusCodeException
public UnknownHttpStatusCodeException(int rawStatusCode, StringSE statusText, @Nullable HttpHeaders responseHeaders, @Nullable byte[] 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, @Nullable byte[] responseBody, @Nullable CharsetSE responseCharset) ステータスコード、ステータステキスト、レスポンス本文の内容に基づいて、HttpStatusCodeException
の新しいインスタンスを構築します。- パラメーター:
rawStatusCode
- 生のステータスコード値statusText
- ステータステキストresponseHeaders
- レスポンスヘッダー (null
の場合があります)responseBody
- レスポンス本文のコンテンツ (null
の場合があります)responseCharset
- レスポンス本体の文字セット (null
の場合があります)- 導入:
- 5.2.2