|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
javax.persistence.PersistenceException
public class PersistenceException
The PersistenceException is thrown by the persistence provider when a problem occurs. It may be thrown to report that the invoked operation could not complete because of an unexpected error (e.g., failure of the persistence provider to open a database connection). All other exceptions defined by this specification are subclasses of the PersistenceException. All instances of PersistenceException except for instances of NoResultException and NonUniqueResultException will cause the current transaction, if one is active, to be marked for rollback.
Field Summary | |
---|---|
private static long |
serialVersionUID
UID for serialization. |
Constructor Summary | |
---|---|
PersistenceException()
Default constructor : builds an exception with an empty message. |
|
PersistenceException(java.lang.String message)
Build an exception with the given message. |
|
PersistenceException(java.lang.String message,
java.lang.Throwable causedByThrowable)
Builds an exception with a given message and given exception. |
|
PersistenceException(java.lang.Throwable causedByThrowable)
Build an exception with the given exception. |
Method Summary |
---|
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
Constructor Detail |
---|
public PersistenceException()
public PersistenceException(java.lang.String message)
message
- the given message to use.public PersistenceException(java.lang.Throwable causedByThrowable)
causedByThrowable
- the cause of this exception.public PersistenceException(java.lang.String message, java.lang.Throwable causedByThrowable)
message
- the message of this exception.causedByThrowable
- the cause of this exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |