Class ReachableObjectNotCascadedException

  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
All Implemented Interfaces:

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
protected static Localiser LOCALISER
Constructor Summary
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
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

Field Detail


protected static final Localiser LOCALISER
Constructor Detail


public ReachableObjectNotCascadedException(java.lang.String fieldName,
                                           java.lang.Object pc)
Constructs the exception.

fieldName - Name of the field where the non-persisted object is stored.
pc - The object that is not persisted and not cascadable

Copyright © 2011. All Rights Reserved.