public class PersistenceException

  1. Object
  2. Throwable
  3. Exception
  4. RuntimeException
  5. 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

message String
failure description

PersistenceException

public PersistenceException(String message, Throwable cause)
Creates an exception retaining the underlying failure.

Parameters

message String
failure description
cause Throwable
underlying failure