/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message)</code>
<div class="block">Constructor with the object being encoded, and the reason why it failed to be.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../jakarta/websocket/EncodeException.html#EncodeException-java.lang.Object-java.lang.String-java.lang.Throwable-">EncodeException</a></span>(<a href="https://docs.oracle.com/javase/8/d