ang">String</a>&nbsp;errorCode)</code>
<div class="block">Set the error code.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../jakarta/resource/ResourceException.html#setLinkedException-java.lang.Exception-">setLinkedException</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a>&nbsp;ex)</cod