="external-link">Throwable</a></code></dd>
<dt>Returns:</dt>
<dd>next Exception, null if none.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setNextException(java.lang.Exception)">
<h3>setNextException</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type">boolean</span>&nbsp;<span class="element-name">setNextException</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Exception.