public class PersistenceException
- Object
- Throwable
- Exception
- RuntimeException
- PersistenceException
Known subtypesLazyInitializationException, OptimisticLockException
An ORM failure, including an underlying database failure during lazy access.
Constructors
public PersistenceException(String message) | Creates an exception describing the persistence failure. |
public PersistenceException(String message, Throwable cause) | Creates an exception retaining the underlying failure. |
Inherited methods
Constructor details
PersistenceException
public PersistenceException(String message)Creates an exception describing the persistence failure.
Parameters
messageString- failure description
PersistenceException
public PersistenceException(String message, Throwable cause)Creates an exception retaining the underlying failure.
Parameters
messageString- failure description
causeThrowable- underlying failure