Name
JDOException
Synopsis
This is the base class for all JDO exceptions. It is a
subclass of RuntimeException, and
it does not need to be declared or caught. It includes a descriptive
String, an optional nested
Exception array, and an optional
failed Object.
This class provides methods to retrieve the nested exception
array and failed object. If there are multiple nested exceptions,
then each might contain one failed object. This will be the case
when an operation requires multiple instances (such as commit( ), makePersistentAll( ), etc.).
If the JDO PersistenceManager is internationalized,
the descriptive string will also be internationalized.
public class JDOException extends java.lang.RuntimeException {
public Object getFailedObject( );
public Throwable[] getNestedExceptions( );
public void printStackTrace( );
public void printStackTrace(PrintStream s);
public void printStackTrace(PrintWriter s);
public String toString( );
}Subclasses
JDOCanRetryException,
JDOFatalException
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access