クラス DecodingException

実装されたすべてのインターフェース:
SerializableSE

public class DecodingException extends CodecException
解析の失敗などのコンテンツ関連の課題に重点を置いて、入力ストリームのデコードに関する課題を示します。より一般的な I/O エラー、不正な状態、Decoder で発生する可能性のある構成の課題などの CodecException とは対照的です。

たとえば、サーバー Web アプリケーションでは、DecodingException は 400(不正な入力)ステータスのレスポンスに変換され、CodecException は 500(サーバーエラー)ステータスに変換されます。

導入:
5.0
作成者:
Rossen Stoyanchev
関連事項:
  • コンストラクターの詳細

    • DecodingException

      public DecodingException(@Nullable StringSE msg)
      新しい DecodingException を作成します。
      パラメーター:
      msg - 詳細メッセージ
    • DecodingException

      public DecodingException(@Nullable StringSE msg, @Nullable ThrowableSE cause)
      新しい DecodingException を作成します。
      パラメーター:
      msg - 詳細メッセージ
      cause - 例外の根本的な原因(ある場合)