パッケージ jakarta.persistence
クラス PersistenceException
java.lang.ObjectSE
java.lang.ThrowableSE
java.lang.ExceptionSE
java.lang.RuntimeExceptionSE
jakarta.persistence.PersistenceException
- 実装されているすべてのインターフェース:
SerializableSE
- 既知の直属サブクラス
EntityExistsException、EntityNotFoundException、LockTimeoutException、NonUniqueResultException、NoResultException、OptimisticLockException、PessimisticLockException、QueryTimeoutException、RollbackException、TransactionRequiredException
問題が発生したときに永続化プロバイダーによってスローされます。
NoResultException、NonUniqueResultException、LockTimeoutException、QueryTimeoutException のインスタンスを除く、PersistenceException のすべてのインスタンスにより、現在のトランザクション (トランザクションがアクティブであり、永続コンテキストがそれに参加している場合) がロールバック対象としてマークされます。
- 導入:
- 1.0
- 関連事項:
コンストラクターの概要
コンストラクターコンストラクター説明詳細メッセージとしてnullを使用して、新しいPersistenceException例外を作成します。PersistenceException(StringSE message) 指定された詳細メッセージを使用して、新しいPersistenceException例外を構築します。PersistenceException(StringSE message, ThrowableSE cause) 指定された詳細メッセージと原因を使用して、新しいPersistenceException例外を構築します。PersistenceException(ThrowableSE cause) 指定された原因で新しいPersistenceException例外を構築します。方法の概要
クラス java.lang.ThrowableSE から継承されたメソッド
addSuppressedSE, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCauseSE, printStackTrace, printStackTraceSE, printStackTraceSE, setStackTraceSE, toString
コンストラクターの詳細
PersistenceException
public PersistenceException()詳細メッセージとしてnullを使用して、新しいPersistenceException例外を作成します。PersistenceException
指定された詳細メッセージを使用して、新しいPersistenceException例外を構築します。- パラメーター:
message- 詳細メッセージ。
PersistenceException
指定された詳細メッセージと原因を使用して、新しいPersistenceException例外を構築します。- パラメーター:
message- 詳細メッセージ。cause- 原因。
PersistenceException
指定された原因で新しいPersistenceException例外を構築します。- パラメーター:
cause- 原因。