Class 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.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static long serialVersionUID  
    • Constructor Summary

      Constructors 
      Constructor Description
      ClassNotPersistenceCapableException​(java.lang.String msg)
      Constructs a class-not-persistence-capable exception with the specified detail message.
      ClassNotPersistenceCapableException​(java.lang.String msg, 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

        addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, 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 msg)
        Constructs a class-not-persistence-capable exception with the specified detail message.
        Parameters:
        msg - The message
      • ClassNotPersistenceCapableException

        public ClassNotPersistenceCapableException​(java.lang.String msg,
                                                   java.lang.Exception nested)
        Constructs a class-not-persistence-capable exception with the specified detail message and nested exception.
        Parameters:
        msg - The message
        nested - the nested exception(s).