org.datanucleus.exceptions
Class ObjectDetachedException

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.exceptions.ObjectDetachedException
All Implemented Interfaces:
java.io.Serializable

public class ObjectDetachedException
extends NucleusUserException

A ObjectDetachedException is thrown if an attempt is made to use the object in a process that doesn't allow detached objects.

Version:
$Revision: 1.4 $
See Also:
Serialized Form

Constructor Summary
ObjectDetachedException(java.lang.String class_name)
          Constructs a class-not-detachable exception with the specified detail message.
ObjectDetachedException(java.lang.String class_name, java.lang.Exception nested)
          Constructs a class-not-detachable exception with the specified detail message and nested exception.
ObjectDetachedException(java.lang.Throwable[] nested)
          Constructs a class-not-detachable exception for many objects with the specified detail message and nested exceptions.
 
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

ObjectDetachedException

public ObjectDetachedException(java.lang.String class_name)
Constructs a class-not-detachable exception with the specified detail message.

Parameters:
class_name - Name of the class

ObjectDetachedException

public ObjectDetachedException(java.lang.String class_name,
                               java.lang.Exception nested)
Constructs a class-not-detachable exception with the specified detail message and nested exception.

Parameters:
class_name - name of the class
nested - the nested exception(s).

ObjectDetachedException

public ObjectDetachedException(java.lang.Throwable[] nested)
Constructs a class-not-detachable exception for many objects with the specified detail message and nested exceptions.

Parameters:
nested - the nested exception(s).


Copyright © 2011. All Rights Reserved.