Package org.datanucleus.exceptions
Class ClassNotPersistableException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.datanucleus.exceptions.NucleusException
-
- org.datanucleus.exceptions.NucleusUserException
-
- 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 hasn't been enhanced.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Fields inherited from class org.datanucleus.exceptions.NucleusException
failed, fatal, nested
-
-
Constructor Summary
Constructors Constructor Description 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, setNestedException
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
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 classnested
- the nested exception(s).
-
-