com.xavax.xstore.exception
Class PersistenceMetadataException

Object
  extended byThrowable
      extended byException
          extended byRuntimeException
              extended byPersistenceException
                  extended byPersistenceMetadataException
All Implemented Interfaces:
Serializable

public class PersistenceMetadataException
extends PersistenceException

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.

See Also:
Serialized Form

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

PersistenceMetadataException

public PersistenceMetadataException(PersistenceManager pm,
                                    String className,
                                    String fieldName,
                                    String message,
                                    Throwable cause)
Construct a PersistenceMetadataException.

Parameters:
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 null

PersistenceMetadataException

public PersistenceMetadataException(PersistenceManager pm,
                                    String className,
                                    String fieldName,
                                    String message)
Construct a PersistenceMetadataException.

Parameters:
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

handle

public void handle()
Handle this exception by writing a description of the exception to the log file.

Overrides:
handle in class PersistenceException

className

public String className()
Returns the name of the class that caused this exception.

Returns:
the name of the class that caused this exception.

fieldName

public String fieldName()
Returns the name of the field that caused this exception.

Returns:
the name of the field that caused this exception.