org.datanucleus.exceptions
Class ClassNotPersistableException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.datanucleus.exceptions.NucleusException
                  extended by org.datanucleus.exceptions.NucleusUserException
                      extended by org.datanucleus.exceptions.ClassNotPersistableException
All Implemented Interfaces:
java.io.Serializable

public class ClassNotPersistableException
extends NucleusUserException

An exception thrown when an operation is invoked that requires a persistable object yet the object passed in is not suitable. This usually means that it doesnt implement "javax.jdo.PersistenceCapable"

See Also:
Serialized Form

Constructor Summary
ClassNotPersistableException(java.lang.String className)
          Constructs a class-not-persistable exception with the specified detail message.
ClassNotPersistableException(java.lang.String className, java.lang.Exception nested)
          Constructs a class-not-persistable exception with the specified detail message and nested exception.
 
Method Summary
 
Methods inherited from class org.datanucleus.exceptions.NucleusException
getCause, getFailedObject, getNestedExceptions, isFatal, printStackTrace, printStackTrace, printStackTrace, setFatal
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClassNotPersistableException

public ClassNotPersistableException(java.lang.String className)
Constructs a class-not-persistable exception with the specified detail message.

Parameters:
className - Name of the class

ClassNotPersistableException

public ClassNotPersistableException(java.lang.String className,
                                    java.lang.Exception nested)
Constructs a class-not-persistable exception with the specified detail message and nested exception.

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


Copyright © 2010. All Rights Reserved.