|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object Throwable Exception RuntimeException PersistenceException
PersistenceException is the base class for all exceptions thrown by the persistence framework.
Constructor Summary | |
PersistenceException(PersistenceManager pm,
String message,
Throwable cause)
Construct a PersistenceException with the specified message. |
|
PersistenceException(PersistenceManager pm,
Throwable cause)
Construct a PersistenceException with a generic message. |
|
PersistenceException(String message,
Throwable cause)
Construct a PersistenceException with the specified message. |
Method Summary | |
void |
handle()
Handle a persistence exception by writing a description of the exception to the log file. |
void |
header()
Output the header of an exception description. |
PersistenceManager |
manager()
Returns the persistence manager passed to the constructor of this exception. |
String |
name()
Returns the class name of this exception. |
void |
trailer()
Output the trailer of an exception description. |
Methods inherited from class Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public PersistenceException(PersistenceManager pm, Throwable cause)
pm
- the persistence manager.cause
- the cause of this exception, or null.public PersistenceException(PersistenceManager pm, String message, Throwable cause)
pm
- the persistence manager.message
- the message string describing the exception.cause
- the cause of this exception, or null.public PersistenceException(String message, Throwable cause)
message
- the message string describing the exception.cause
- the cause of this exception, or null.Method Detail |
public void handle()
public void header()
public void trailer()
public PersistenceManager manager()
public String name()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |