Package org.datanucleus.exceptions
Class ObjectDetachedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.datanucleus.exceptions.NucleusException
-
- org.datanucleus.exceptions.NucleusUserException
-
- 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.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Fields inherited from class org.datanucleus.exceptions.NucleusException
failed, fatal, nested
-
-
Constructor Summary
Constructors Constructor Description 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, setNestedException
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
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 classnested
- 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).
-
-