org.datanucleus.jdo.exceptions
Class ClassNotPersistenceCapableException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by javax.jdo.JDOException
                  extended by javax.jdo.JDOCanRetryException
                      extended by javax.jdo.JDOUserException
                          extended by org.datanucleus.jdo.exceptions.ClassNotPersistenceCapableException
All Implemented Interfaces:
java.io.Serializable

public class ClassNotPersistenceCapableException
extends javax.jdo.JDOUserException

A ClassNotPersistenceCapableException is thrown if an attempt is made to persist an object whose class is not persistence-capable. This may be because the class has not been appropriately enhanced to be made persistence-capable.

Version:
$Revision: 1.1 $
See Also:
ClassMetaData, Serialized Form

Constructor Summary
ClassNotPersistenceCapableException(java.lang.String class_name)
          Constructs a class-not-persistence-capable exception with the specified detail message.
ClassNotPersistenceCapableException(java.lang.String class_name, java.lang.Exception nested)
          Constructs a class-not-persistence-capable exception with the specified detail message and nested exception.
 
Method Summary
 
Methods inherited from class javax.jdo.JDOException
getCause, getFailedObject, getNestedExceptions, initCause, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClassNotPersistenceCapableException

public ClassNotPersistenceCapableException(java.lang.String class_name)
Constructs a class-not-persistence-capable exception with the specified detail message.

Parameters:
class_name - Name of the class

ClassNotPersistenceCapableException

public ClassNotPersistenceCapableException(java.lang.String class_name,
                                           java.lang.Exception nested)
Constructs a class-not-persistence-capable exception with the specified detail message and nested exception.

Parameters:
class_name - name of the class
nested - the nested exception(s).


Copyright © 2009. All Rights Reserved.