public class JDOException extends RuntimeException
| Constructor and Description |
|---|
JDOException()
Creates a new
JDOException without detail message. |
JDOException(String msg)
Constructs a new
JDOException with the specified detail message. |
JDOException(String msg,
Exception nested)
Constructs a new
JDOException with the specified detail message
and nested Exception. |
JDOException(String msg,
Exception nested,
Object[] failed)
Constructs a new
JDOException with the specified detail message,
nested exception, and failed object array. |
JDOException(String msg,
Object[] failed)
Constructs a new
JDOException with the specified detail message
and failed object array. |
| Modifier and Type | Method and Description |
|---|---|
void |
addFailedObject(Object o)
The exception may need to add objects to an array of failed objects.
|
Object[] |
getFailedObjectArray()
The exception may include an array of failed objects.
|
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(PrintStream s)
Prints this
JDOException and its backtrace to the
specified print stream. |
void |
printStackTrace(PrintWriter s)
Prints this
JDOException and its backtrace to the specified
print writer. |
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).
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTracepublic JDOException()
JDOException without detail message.public JDOException(String msg)
JDOException with the specified detail message.msg - the detail message.public JDOException(String msg, Exception nested)
JDOException with the specified detail message
and nested Exception.msg - the detail message.nested - the nested Exception.public JDOException(String msg, Object[] failed)
JDOException with the specified detail message
and failed object array.msg - the detail message.failed - the failed object array.public void addFailedObject(Object o)
o - the failed object to add to an array.public Object[] getFailedObjectArray()
public Exception getNestedException()
public String toString()
public void printStackTrace()
JDOException and its backtrace to the
standard error output.
Prints nested Throwables' stack trace as well.printStackTrace in class Throwablepublic void printStackTrace(PrintStream s)
JDOException and its backtrace to the
specified print stream.
Prints nested Throwable's stack trace as well.printStackTrace in class Throwables - PrintStream to use for outputpublic void printStackTrace(PrintWriter s)
JDOException and its backtrace to the specified
print writer.
Prints nested Throwable's stack trace as well.printStackTrace in class Throwables - PrintWriter to use for outputCopyright © 2017–2020 Eclipse Foundation. All rights reserved.