Package org.datanucleus.exceptions
Class ReachableObjectNotCascadedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.datanucleus.exceptions.NucleusException
-
- org.datanucleus.exceptions.NucleusUserException
-
- org.datanucleus.exceptions.ReachableObjectNotCascadedException
-
- All Implemented Interfaces:
java.io.Serializable
public class ReachableObjectNotCascadedException extends NucleusUserException
An exception that is thrown when we have a relation to another persistable object that is not yet persistent and where the relation is not marked as cascade-persist.- See Also:
StoreManager
, 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 ReachableObjectNotCascadedException(java.lang.String fieldName, java.lang.Object pc)
Constructs the 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
-
ReachableObjectNotCascadedException
public ReachableObjectNotCascadedException(java.lang.String fieldName, java.lang.Object pc)
Constructs the exception.- Parameters:
fieldName
- Name of the field where the non-persisted object is stored.pc
- The object that is not persisted and not cascadable
-
-