パッケージ org.springframework.beans

クラス PropertyBatchUpdateException

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

public class PropertyBatchUpdateException extends BeansException
個々の PropertyAccessException インスタンスで構成される複合例外。このクラスのオブジェクトは、バインディングプロセスの開始時に作成され、必要に応じてエラーが追加されます。

バインディングプロセスは、アプリケーションレベルの PropertyAccessExceptions に遭遇すると続行され、適用可能な変更を適用し、拒否された変更をこのクラスのオブジェクトに格納します。

導入:
2001 年 4 月 18 日
作成者:
Rod Johnson, Juergen Hoeller
関連事項:
  • コンストラクターの詳細

    • PropertyBatchUpdateException

      public PropertyBatchUpdateException(PropertyAccessException[] propertyAccessExceptions)
      新しい PropertyBatchUpdateException を作成します。
      パラメーター:
      propertyAccessExceptions - PropertyAccessExceptions のリスト
  • メソッドの詳細

    • getExceptionCount

      public final int getExceptionCount()
      これが 0 を返す場合、バインド中にエラーは発生していません。
    • getPropertyAccessExceptions

      public final PropertyAccessException[] getPropertyAccessExceptions()
      このオブジェクトに保存されている propertyAccessExceptions の配列を返します。

      エラーがなかった場合、空の配列(null ではない)を返します。

    • getPropertyAccessException

      @Nullable public PropertyAccessException getPropertyAccessException(StringSE propertyName)
      このフィールドの例外を返すか、存在しない場合は null を返します。
    • getMessage

      public StringSE getMessage()
      オーバーライド:
      クラス ThrowableSEgetMessage 
    • toString

      public StringSE toString()
      オーバーライド:
      クラス ThrowableSEtoString 
    • printStackTrace

      public void printStackTrace(PrintStreamSE ps)
      オーバーライド:
      クラス ThrowableSEprintStackTraceSE 
    • printStackTrace

      public void printStackTrace(PrintWriterSE pw)
      オーバーライド:
      クラス ThrowableSEprintStackTraceSE 
    • contains

      public boolean contains(@Nullable ClassSE<?> exType)
      クラスからコピーされた説明: NestedRuntimeException
      この例外に特定の型の例外が含まれているかどうかを確認します。特定のクラス自体のものであるか、特定の型のネストされた原因が含まれています。
      オーバーライド:
      クラス NestedRuntimeExceptioncontains 
      パラメーター:
      exType - 検索する例外型
      戻り値:
      指定された型のネストされた例外があるかどうか