|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object Throwable Exception RuntimeException PersistenceException PersistenceMetadataException
PersistenceMetadataException is thrown by the persistence framework when an inconsistency is detected in the metadata such as a reference to a class, table, or column that does not exist.
Constructor Summary | |
PersistenceMetadataException(PersistenceManager pm,
String className,
String fieldName,
String message)
Construct a PersistenceMetadataException. |
|
PersistenceMetadataException(PersistenceManager pm,
String className,
String fieldName,
String message,
Throwable cause)
Construct a PersistenceMetadataException. |
Method Summary | |
String |
className()
Returns the name of the class that caused this exception. |
String |
fieldName()
Returns the name of the field that caused this exception. |
void |
handle()
Handle this exception by writing a description of the exception to the log file. |
Methods inherited from class PersistenceException |
header, manager, name, trailer |
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 PersistenceMetadataException(PersistenceManager pm, String className, String fieldName, String message, Throwable cause)
pm
- the persistence manager.className
- the class that caused the exception.fieldName
- the field that caused the exception.message
- a string describing the cause of the exception.cause
- the cause of this exception, or nullpublic PersistenceMetadataException(PersistenceManager pm, String className, String fieldName, String message)
pm
- the persistence manager.className
- the class that caused the exception.fieldName
- the field that caused the exception.message
- a string describing the cause of the exception.Method Detail |
public void handle()
handle
in class PersistenceException
public String className()
public String fieldName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |