クラス HttpStatusCodeException
- 実装されたすべてのインターフェース:
SerializableSE
- 既知の直属サブクラス
HttpClientErrorException
,HttpServerErrorException
HttpStatusCode
に基づく例外の抽象基本クラス。- 導入:
- 3.0
- 作成者:
- Arjen Poutsma, Chris Beams, Rossen Stoyanchev
- 関連事項:
コンストラクターのサマリー
修飾子コンストラクター説明protected
HttpStatusCodeException
(StringSE message, HttpStatusCode statusCode, StringSE statusText, HttpHeaders responseHeaders, byte[] responseBody, CharsetSE responseCharset) HttpStatusCode
、ステータステキスト、コンテンツ、レスポンス文字セットを使用してインスタンスを作成します。protected
HttpStatusCodeException
(HttpStatusCode statusCode) HttpStatusCode
を使用して新しいインスタンスを構築します。protected
HttpStatusCodeException
(HttpStatusCode statusCode, StringSE statusText) HttpStatusCode
とステータステキストで新しいインスタンスを構築します。protected
HttpStatusCodeException
(HttpStatusCode statusCode, StringSE statusText, byte[] responseBody, CharsetSE responseCharset) HttpStatusCode
、ステータステキスト、コンテンツでインスタンスを作成します。protected
HttpStatusCodeException
(HttpStatusCode statusCode, StringSE statusText, HttpHeaders responseHeaders, byte[] responseBody, CharsetSE responseCharset) HttpStatusCode
、ステータステキスト、コンテンツ、レスポンス文字セットを使用してインスタンスを作成します。方法の概要
クラス 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
コンストラクターの詳細
HttpStatusCodeException
HttpStatusCode
を使用して新しいインスタンスを構築します。- パラメーター:
statusCode
- ステータスコード
HttpStatusCodeException
HttpStatusCode
とステータステキストで新しいインスタンスを構築します。- パラメーター:
statusCode
- ステータスコードstatusText
- ステータステキスト
HttpStatusCodeException
protected HttpStatusCodeException(HttpStatusCode statusCode, StringSE statusText, @Nullable byte[] responseBody, @Nullable CharsetSE responseCharset) HttpStatusCode
、ステータステキスト、コンテンツでインスタンスを作成します。- パラメーター:
statusCode
- ステータスコードstatusText
- ステータステキストresponseBody
- レスポンス本文のコンテンツ。null
の場合がありますresponseCharset
- レスポンス本文の文字セット。null
の場合があります- 導入:
- 3.0.5
HttpStatusCodeException
protected HttpStatusCodeException(HttpStatusCode statusCode, StringSE statusText, @Nullable HttpHeaders responseHeaders, @Nullable byte[] responseBody, @Nullable CharsetSE responseCharset) HttpStatusCode
、ステータステキスト、コンテンツ、レスポンス文字セットを使用してインスタンスを作成します。- パラメーター:
statusCode
- ステータスコードstatusText
- ステータステキストresponseHeaders
- レスポンスヘッダー。null
の場合がありますresponseBody
- レスポンス本文のコンテンツ。null
の場合がありますresponseCharset
- レスポンス本文の文字セット。null
の場合があります- 導入:
- 3.1.2
HttpStatusCodeException
protected HttpStatusCodeException(StringSE message, HttpStatusCode statusCode, StringSE statusText, @Nullable HttpHeaders responseHeaders, @Nullable byte[] responseBody, @Nullable CharsetSE responseCharset) HttpStatusCode
、ステータステキスト、コンテンツ、レスポンス文字セットを使用してインスタンスを作成します。- パラメーター:
message
- 例外メッセージstatusCode
- ステータスコードstatusText
- ステータステキストresponseHeaders
- レスポンスヘッダー。null
の場合がありますresponseBody
- レスポンス本文のコンテンツ。null
の場合がありますresponseCharset
- レスポンス本文の文字セット。null
の場合があります- 導入:
- 5.2.2