JDOException
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. - Since:
- JDO 1.0
Public Constructors
- Since:
- JDO 1.0
JDOException(String msg)
- Parameters:
msg
- the detail message.
- Since:
- JDO 1.0
JDOException(String msg, Object failed)
- Parameters:
msg
- the detail message.failed
- the failed object.
- Since:
- JDO 1.0
JDOException(String msg, Throwable nested)
- Parameters:
msg
- the detail message.nested
- the nestedThrowable
.
- Since:
- JDO 1.0
JDOException(String msg, Throwable nested, Object failed)
- Parameters:
msg
- the detail message.nested
- the nestedThrowable
.failed
- the failed object.
- Since:
- JDO 1.0
JDOException(String msg, Throwable[] nested)
- Parameters:
msg
- the detail message.nested
- the nestedThrowable[]
.
- Since:
- JDO 1.0
JDOException(String msg, Throwable[] nested, Object failed)
- Parameters:
msg
- the detail message.nested
- the nestedThrowable[]
.failed
- the failed object.
- Since:
- JDO 1.0
Public Methods
Throwable getCause()
If there are more than one, then this method returns the first nested exception. If there is no nested exception, then null is returned.
- Return:
- the first or only nested Throwable.
- Since:
- JDO 1.0
Object getFailedObject()
- Return:
- the failed object.
- Since:
- JDO 1.0
Throwable[] getNestedExceptions()
If multiple objects caused the problem, each failed object will have its own
Exception
. - Return:
- the nested Throwable array.
- Since:
- JDO 1.0
Throwable initCause(Throwable cause)
This method always throws a JDOFatalInternalException.
- Parameters:
cause
- ignored.
- Return:
- never.
- Since:
- JDO 1.0
void printStackTrace()
Print nested Throwables' stack trace as well.
- Since:
- JDO 1.0
void printStackTrace(PrintStream s)
Print nested Throwables' stack trace as well.
- Parameters:
s
-PrintStream
to use for output
- Since:
- JDO 1.0
void printStackTrace(PrintWriter s)
Print nested Throwables' stack trace as well.
- Parameters:
s
-PrintWriter
to use for output
- Since:
- JDO 1.0
String toString()
- Return:
- the
String
.
- Since:
- JDO 1.0
Method inherited from class java.lang.Throwable
addSuppressed
, fillInStackTrace
, getCause
, getLocalizedMessage
, getMessage
, getStackTrace
, getSuppressed
, initCause
, printStackTrace
, printStackTrace
, printStackTrace
, setStackTrace
, toString