public class JDOException extends RuntimeException
Throwable
array and an optional failed object.Constructor and Description |
---|
JDOException()
Constructs a new
JDOException without a detail message. |
JDOException(String msg)
Constructs a new
JDOException with the specified detail message. |
JDOException(String msg,
Object failed)
Constructs a new
JDOException with the specified detail message
and failed object. |
JDOException(String msg,
Throwable nested)
Constructs a new
JDOException with the specified detail message
and nested Throwable . |
JDOException(String msg,
Throwable[] nested)
Constructs a new
JDOException with the specified detail message
and nested Throwable s. |
JDOException(String msg,
Throwable[] nested,
Object failed)
Constructs a new
JDOException with the specified detail message,
nested Throwable s, and failed object. |
JDOException(String msg,
Throwable nested,
Object failed)
Constructs a new
JDOException with the specified detail message,
nested Throwable , and failed object. |
Modifier and Type | Method and Description |
---|---|
Throwable |
getCause()
Often there is only one nested exception, and this method returns it.
|
Object |
getFailedObject()
The exception may include a failed object.
|
Throwable[] |
getNestedExceptions()
The exception may have been caused by multiple exceptions in the runtime.
|
Throwable |
initCause(Throwable cause)
JDK 1.4 includes a new chaining mechanism for Throwable, but since
JDO has its own "legacy" chaining mechanism, the "standard" mechanism
cannot be used.
|
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 failed Object (if any),
and the String representation of the nested Throwable s (if any). |
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, setStackTrace
public JDOException()
JDOException
without a detail message.public JDOException(String msg)
JDOException
with the specified detail message.msg
- the detail message.public JDOException(String msg, Throwable[] nested)
JDOException
with the specified detail message
and nested Throwable
s.msg
- the detail message.nested
- the nested Throwable[]
.public JDOException(String msg, Throwable nested)
JDOException
with the specified detail message
and nested Throwable
.msg
- the detail message.nested
- the nested Throwable
.public JDOException(String msg, Object failed)
JDOException
with the specified detail message
and failed object.msg
- the detail message.failed
- the failed object.public JDOException(String msg, Throwable[] nested, Object failed)
JDOException
with the specified detail message,
nested Throwable
s, and failed object.msg
- the detail message.nested
- the nested Throwable[]
.failed
- the failed object.public Object getFailedObject()
public Throwable[] getNestedExceptions()
Exception
.public Throwable getCause()
public Throwable initCause(Throwable cause)
public 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 Throwable
s (if any).public void printStackTrace()
JDOException
and its backtrace to the
standard error output.
Print nested Throwables' stack trace as well.printStackTrace
in class Throwable
public void printStackTrace(PrintStream s)
JDOException
and its backtrace to the
specified print stream.
Print nested Throwables' stack trace as well.printStackTrace
in class Throwable
s
- PrintStream
to use for outputpublic void printStackTrace(PrintWriter s)
JDOException
and its backtrace to the specified
print writer.
Print nested Throwables' stack trace as well.printStackTrace
in class Throwable
s
- PrintWriter
to use for outputCopyright © 2005–1970 Apache Software Foundation. All rights reserved.