|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.lang.RuntimeException
|
+--javax.jdo.JDOException
This is the root of all JDO Exceptions. It contains an optional detail
message, an optional nested Throwable array and an optional failed object.
| Field Summary | |
(package private) java.lang.Object |
failed
This exception may be the result of incorrect parameters supplied to an API. |
(package private) java.lang.Throwable[] |
nested
This exception was generated because of an exception in the runtime library. |
| Fields inherited from class java.lang.RuntimeException |
|
| Constructor Summary | |
JDOException()
Constructs a new JDOException without a detail message. |
|
JDOException(java.lang.String msg)
Constructs a new JDOException with the specified detail message. |
|
JDOException(java.lang.String msg,
java.lang.Object failed)
Constructs a new JDOException with the specified detail message
and failed object. |
|
JDOException(java.lang.String msg,
java.lang.Throwable nested)
Constructs a new JDOException with the specified detail message
and nested Throwable. |
|
JDOException(java.lang.String msg,
java.lang.Throwable[] nested)
Constructs a new JDOException with the specified detail message
and nested Throwables. |
|
JDOException(java.lang.String msg,
java.lang.Throwable[] nested,
java.lang.Object failed)
Constructs a new JDOException with the specified detail message,
nested Throwables, and failed object. |
|
JDOException(java.lang.String msg,
java.lang.Throwable nested,
java.lang.Object failed)
Constructs a new JDOException with the specified detail message,
nested Throwable, and failed object. |
|
| Method Summary | |
java.lang.Object |
getFailedObject()
The exception may include a failed object. |
java.lang.Throwable[] |
getNestedExceptions()
The exception may have been caused by multiple exceptions 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 failed Object (if any),
and the String representation of the nested Throwables (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 |
| Field Detail |
java.lang.Throwable[] nested
java.lang.Object failed
| Constructor Detail |
public JDOException()
JDOException without a 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.Throwable[] nested)
JDOException with the specified detail message
and nested Throwables.
msg - the detail message.nested - the nested Throwable[].
public JDOException(java.lang.String msg,
java.lang.Throwable nested)
JDOException with the specified detail message
and nested Throwable.
msg - the detail message.nested - the nested Throwable.
public JDOException(java.lang.String msg,
java.lang.Object failed)
JDOException with the specified detail message
and failed object.
msg - the detail message.failed - the failed object.
public JDOException(java.lang.String msg,
java.lang.Throwable[] nested,
java.lang.Object failed)
JDOException with the specified detail message,
nested Throwables, and failed object.
msg - the detail message.nested - the nested Throwable[].failed - the failed object.
public JDOException(java.lang.String msg,
java.lang.Throwable nested,
java.lang.Object failed)
JDOException with the specified detail message,
nested Throwable, and failed object.
msg - the detail message.nested - the nested Throwable.failed - the failed object.| Method Detail |
public java.lang.Object getFailedObject()
public java.lang.Throwable[] getNestedExceptions()
Exception.
public java.lang.String toString()
String representation includes the name of the class,
the descriptive comment (if any),
the String representation of the failed Object (if any),
and the String representation of the nested Throwables (if any).
toString in class java.lang.ThrowableString.public void printStackTrace()
JDOException and its backtrace to the
standard error output.
Print 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.
Print nested Throwables' 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.
Print nested Throwables' 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 | ||||||||