クラス HttpStatusCodeException

実装されたすべてのインターフェース:
SerializableSE
既知の直属サブクラス
HttpClientErrorExceptionHttpServerErrorException

public abstract class HttpStatusCodeException extends RestClientResponseException
HttpStatusCode に基づく例外の抽象基本クラス。
導入:
3.0
作成者:
Arjen Poutsma, Chris Beams, Rossen Stoyanchev
関連事項:
  • コンストラクターの詳細

    • HttpStatusCodeException

      protected HttpStatusCodeException(HttpStatusCode statusCode)
      HttpStatusCode を使用して新しいインスタンスを構築します。
      パラメーター:
      statusCode - ステータスコード
    • HttpStatusCodeException

      protected HttpStatusCodeException(HttpStatusCode statusCode, StringSE statusText)
      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