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