|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.sun.jdo.api.persistence.support.JDOException
public class JDOException
This is the root of all JDO Exceptions. It contains an optional nested Exception and an optional message.
| Constructor Summary | |
|---|---|
JDOException()
Creates a new JDOException without detail message. |
|
JDOException(java.lang.String msg)
Constructs a new JDOException with the specified detail message. |
|
JDOException(java.lang.String msg,
java.lang.Exception nested)
Constructs a new JDOException with the specified detail message
and nested Exception. |
|
JDOException(java.lang.String msg,
java.lang.Exception nested,
java.lang.Object[] failed)
Constructs a new JDOException with the specified detail message,
nested exception, and failed object array. |
|
JDOException(java.lang.String msg,
java.lang.Object[] failed)
Constructs a new JDOException with the specified detail message
and failed object array. |
|
| Method Summary | |
|---|---|
void |
addFailedObject(java.lang.Object o)
The exception may need to add objects to an array of failed objects. |
java.lang.Object[] |
getFailedObjectArray()
The exception may include an array of failed objects. |
java.lang.Exception |
getNestedException()
The exception may have been caused by an Exception in the runtime. |
void |
printStackTrace()
Prints this JDOException and its backtrace to the
standard error output. |
void |
printStackTrace(java.io.PrintStream s)
Prints this JDOException and its backtrace to the
specified print stream. |
void |
printStackTrace(java.io.PrintWriter s)
Prints this JDOException and its backtrace to the specified
print writer. |
java.lang.String |
toString()
The String representation includes the name of the class, the descriptive comment (if any), the String representation of the nested Exception (if any), and the String representation of the failed Object array (if any). |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JDOException()
JDOException without detail message.
public JDOException(java.lang.String msg)
JDOException with the specified detail message.
msg - the detail message.
public JDOException(java.lang.String msg,
java.lang.Exception nested)
JDOException with the specified detail message
and nested Exception.
msg - the detail message.nested - the nested Exception.
public JDOException(java.lang.String msg,
java.lang.Object[] failed)
JDOException with the specified detail message
and failed object array.
msg - the detail message.failed - the failed object array.
public JDOException(java.lang.String msg,
java.lang.Exception nested,
java.lang.Object[] failed)
JDOException with the specified detail message,
nested exception, and failed object array.
msg - the detail message.nested - the nested Exception.failed - the failed object array.| Method Detail |
|---|
public void addFailedObject(java.lang.Object o)
o - the failed object to add to an array.public java.lang.Object[] getFailedObjectArray()
public java.lang.Exception getNestedException()
public java.lang.String toString()
toString in class java.lang.Throwablepublic void printStackTrace()
JDOException and its backtrace to the
standard error output.
Prints nested Throwables' stack trace as well.
printStackTrace in class java.lang.Throwablepublic void printStackTrace(java.io.PrintStream s)
JDOException and its backtrace to the
specified print stream.
Prints nested Throwable's stack trace as well.
printStackTrace in class java.lang.Throwables - PrintStream to use for outputpublic void printStackTrace(java.io.PrintWriter s)
JDOException and its backtrace to the specified
print writer.
Prints nested Throwable's stack trace as well.
printStackTrace in class java.lang.Throwables - PrintWriter to use for output
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||