Package org.hibernate
Class TransientObjectException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- jakarta.persistence.PersistenceException
-
- org.hibernate.HibernateException
-
- org.hibernate.TransientObjectException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
TransientPropertyValueException
public class TransientObjectException extends HibernateException
Thrown when the user passes a transient instance to aSession
method that expects a persistent instance.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TransientObjectException(String message)
Constructs aTransientObjectException
using the supplied 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
-
TransientObjectException
public TransientObjectException(String message)
Constructs aTransientObjectException
using the supplied message.- Parameters:
message
- The message explaining the exception condition
-
-