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