JDOFatalException
java.lang.Object ∟ java.lang.Throwable ∟ java.lang.Exception ∟ java.lang.RuntimeException ∟ javax.jdo.JDOException ∟ javax.jdo.JDOFatalException
This class represents exceptions that are fatal; that is, the condition that caused it cannot be bypassed even if the operation is retried.
- Since:
- JDO 1.0
Public Constructors
- Since:
- JDO 1.0
JDOFatalException(String msg)
- Parameters:
msg
- the detail message.
- Since:
- JDO 1.0
JDOFatalException(String msg, Object failed)
- Parameters:
msg
- the detail message.failed
- the failed object.
- Since:
- JDO 1.0
JDOFatalException(String msg, Throwable nested)
- Parameters:
msg
- the detail message.nested
- the nestedThrowable
.
- Since:
- JDO 1.0
JDOFatalException(String msg, Throwable nested, Object failed)
- Parameters:
msg
- the detail message.nested
- the nestedThrowable
.failed
- the failed object.
- Since:
- JDO 1.0
JDOFatalException(String msg, Throwable[] nested)
- Parameters:
msg
- the detail message.nested
- the nestedThrowable[]
.
- Since:
- JDO 1.0
JDOFatalException(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.
- Inherited from:
JDOException
- Since:
- JDO 1.0
Object getFailedObject()
Throwable[] getNestedExceptions()
If multiple objects caused the problem, each failed object will have its own
Exception
. - Return:
- the nested Throwable array.
- Inherited from:
JDOException
- Since:
- JDO 1.0
Throwable initCause(Throwable cause)
This method always throws a JDOFatalInternalException.
- Parameters:
cause
- ignored.
- Return:
- never.
- Inherited from:
JDOException
- Since:
- JDO 1.0
void printStackTrace()
Print nested Throwables' stack trace as well.
- Inherited from:
JDOException
- Since:
- JDO 1.0
void printStackTrace(PrintStream s)
Print nested Throwables' stack trace as well.
- Parameters:
s
-PrintStream
to use for output
- Inherited from:
JDOException
- Since:
- JDO 1.0
void printStackTrace(PrintWriter s)
Print nested Throwables' stack trace as well.
- Parameters:
s
-PrintWriter
to use for output
- Inherited from:
JDOException
- Since:
- JDO 1.0
String toString()
Method inherited from class javax.jdo.JDOException
getCause
, getFailedObject
, getNestedExceptions
, initCause
, printStackTrace
, printStackTrace
, printStackTrace
, toString
Method inherited from class java.lang.Throwable
addSuppressed
, fillInStackTrace
, getCause
, getLocalizedMessage
, getMessage
, getStackTrace
, getSuppressed
, initCause
, printStackTrace
, printStackTrace
, printStackTrace
, setStackTrace
, toString