Class NullsNotAllowedException

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

public class NullsNotAllowedException
extends NucleusUserException

Exception thrown if an attempt is made to insert a null object into a Collection or Map that doesn't support nulls.

See Also:
Serialized Form

Constructor Summary
NullsNotAllowedException(StateManager ownerSM, java.lang.String fieldName)
          Constructs a nulls-not-allowed 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

Constructor Detail


public NullsNotAllowedException(StateManager ownerSM,
                                java.lang.String fieldName)
Constructs a nulls-not-allowed exception.

ownerSM - The StateManager of the object owning the SCO field.
fieldName - The name of the SCO field.

Copyright © 2009. All Rights Reserved.