Package org.hibernate
Class PersistentObjectException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- jakarta.persistence.PersistenceException
-
- org.hibernate.HibernateException
-
- org.hibernate.PersistentObjectException
-
- All Implemented Interfaces:
Serializable
public class PersistentObjectException extends HibernateException
Thrown when the user passes a persistent instance to aSession
method that expects a transient instance.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PersistentObjectException(String message)
Constructs aPersistentObjectException
using the given message.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
PersistentObjectException
public PersistentObjectException(String message)
Constructs aPersistentObjectException
using the given message.- Parameters:
message
- A message explaining the exception condition
-
-