public class EntityNotFoundException extends PersistenceException
EntityManager.getReference(Class,Object)
is accessed but the entity does not exist. Also thrown when
EntityManager.refresh(Object) is called
and the object no longer exists in the database. The
current transaction, if one is active, will be marked for rollback.EntityManager.getReference(Class,Object),
EntityManager.refresh(Object),
Serialized Form| Constructor and Description |
|---|
EntityNotFoundException()
Constructs a new
EntityNotFoundException exception
with null as its detail message. |
EntityNotFoundException(String message)
Constructs a new
EntityNotFoundException exception
with the specified detail message. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic EntityNotFoundException()
EntityNotFoundException exception
with null as its detail message.public EntityNotFoundException(String message)
EntityNotFoundException exception
with the specified detail message.message - the detail message.Copyright © 2023. All rights reserved.