mber-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Exception.html" title="class or interface in java.lang" class="external-link">Exception</a></span>&nbsp;<span class="element-name">getNextException</span>()</div>
<div class="block">Get the next exception chained to this one. If the
 next exception is a MessagingException, the chain
 may extend further.</div>
<dl class="notes">
<dt>Returns:</dt>