Package org.hibernate
Class ObjectDeletedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- jakarta.persistence.PersistenceException
-
- org.hibernate.HibernateException
-
- org.hibernate.UnresolvableObjectException
-
- org.hibernate.ObjectDeletedException
-
- All Implemented Interfaces:
Serializable
public class ObjectDeletedException extends UnresolvableObjectException
Thrown when the user tries to do something illegal with a deleted object.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ObjectDeletedException(String message, Object identifier, String entityName)
Constructs anObjectDeletedException
using the given information.
-
Method Summary
-
Methods inherited from class org.hibernate.UnresolvableObjectException
getEntityName, getIdentifier, getMessage, throwIfNull
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ObjectDeletedException
public ObjectDeletedException(String message, Object identifier, String entityName)
Constructs anObjectDeletedException
using the given information.- Parameters:
message
- A message explaining the exception conditionidentifier
- The identifier of the entityentityName
- The name of the entity
-
-