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:
Serializable
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:
-
Field Summary
FieldsFields inherited from class org.datanucleus.exceptions.NucleusException
failed, fatal, nested
-
Constructor Summary
ConstructorsConstructorDescriptionReachableObjectNotCascadedException
(String fieldName, Object pc) Constructs the exception. -
Method Summary
Methods inherited from class org.datanucleus.exceptions.NucleusException
getCause, getFailedObject, getNestedExceptions, isFatal, printStackTrace, printStackTrace, printStackTrace, setFatal, setNestedException
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
ReachableObjectNotCascadedException
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
-