rue" title="class or interface in java.lang">String</a>...&nbsp;allowedMethods)</pre>
<div class="block">Construct a new method not allowed exception.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>cause</code> - the underlying cause of the exception.</dd>
<dd><code>allowedMethods</code> - allowed request methods.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=t