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:
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
-
-
Constructor Summary
Constructors Constructor Description ObjectDetachedException(String class_name)
Constructs a class-not-detachable exception with the specified detail message.ObjectDetachedException(String class_name, Exception nested)
Constructs a class-not-detachable exception with the specified detail message and nested exception.ObjectDetachedException(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
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ObjectDetachedException
public ObjectDetachedException(String class_name)
Constructs a class-not-detachable exception with the specified detail message.- Parameters:
class_name
- Name of the class
-
ObjectDetachedException
public ObjectDetachedException(String class_name, 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(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).
-
-