/java/javase/11/docs/api/java.base/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a>&nbsp;message)</pre>
<div class="block">Constructor with the object being encoded, and the reason why it failed to be.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>object</code> - the object that could not be encoded.</dd>
<dd><code>message</code> - the reason for the failure.</dd>
</dl>
</li>
</ul>
<a id="&lt;init&gt;(java.lang.Object