Home » JDO » Exceptions » JDOException » getCause() - JDO JDOException's method

getCause() - JDO JDOException's method

Method
javax.jdo.JDOException
Throwable getCause()

Often there is only one nested exception, and this method returns it. If there are more than one, then this method returns the first nested exception. If there is no nested exception, then null is returned.
Returns:
the first or only nested Throwable.
Since:
JDO 1.0.1

This documentation page is derived (with some adjustments) from the JDO 2.2 API
and is available under the terms of the Apache License, v. 2.0.