パッケージ jakarta.persistence

クラス PersistenceException

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

public class PersistenceException extends RuntimeExceptionSE
問題が発生したときに永続化プロバイダーによってスローされます。

NoResultExceptionNonUniqueResultExceptionLockTimeoutExceptionQueryTimeoutException のインスタンスを除く、PersistenceException のすべてのインスタンスにより、現在のトランザクション (トランザクションがアクティブであり、永続コンテキストがそれに参加している場合) がロールバック対象としてマークされます。

導入:
1.0
関連事項:
  • コンストラクターの詳細

    • PersistenceException

      public PersistenceException()
      詳細メッセージとして null を使用して、新しい PersistenceException 例外を作成します。
    • PersistenceException

      public PersistenceException(StringSE message)
      指定された詳細メッセージを使用して、新しい PersistenceException 例外を構築します。
      パラメーター:
      message - 詳細メッセージ。
    • PersistenceException

      public PersistenceException(StringSE message, ThrowableSE cause)
      指定された詳細メッセージと原因を使用して、新しい PersistenceException 例外を構築します。
      パラメーター:
      message - 詳細メッセージ。
      cause - 原因。
    • PersistenceException

      public PersistenceException(ThrowableSE cause)
      指定された原因で新しい PersistenceException 例外を構築します。
      パラメーター:
      cause - 原因。