org.datanucleus.store.exceptions
Class ReachableObjectNotCascadedException

java.lang.Object
  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 org.datanucleus.store.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
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

LOCALISER

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


Copyright © 2009. All Rights Reserved.