pan class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/ClassCastException.html?is-external=true" title="class or interface in java.lang">ClassCastException</a></code> - When <code>S</code> is of wrong type.</dd>
</dl>
</li>
</ul>
<a name="getCloseCode--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCloseCode</h4>
<pre>public&nbsp;<a href="../../../javax/websocket/CloseReason.CloseCode.html" title="interface in javax.websock