<divclass="inheritance"title="Inheritance Tree"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">java.lang.Object</a>
<divclass="inheritance"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Throwable.html"title="class or interface in java.lang"class="external-link">java.lang.Throwable</a>
<divclass="inheritance"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Exception.html"title="class or interface in java.lang"class="external-link">java.lang.Exception</a>
<divclass="inheritance"><ahref="ServerException.html"title="class in com.destroystokyo.paper.exception">com.destroystokyo.paper.exception.ServerException</a>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/io/Serializable.html"title="class or interface in java.io"class="external-link">Serializable</a></code></dd>
</dl>
<dlclass="notes">
<dt>Direct Known Subclasses:</dt>
<dd><code><ahref="ServerTabCompleteException.html"title="class in com.destroystokyo.paper.exception">ServerTabCompleteException</a></code></dd>
</dl>
<hr>
<divclass="type-signature"><spanclass="modifiers">public class </span><spanclass="element-name type-name-label">ServerCommandException</span>
<spanclass="extends-implements">extends <ahref="ServerException.html"title="class in com.destroystokyo.paper.exception">ServerException</a></span></div>
<divclass="block">Thrown when a command throws an exception</div>
<divclass="col-constructor-name even-row-color"><code><ahref="#%3Cinit%3E(java.lang.String,java.lang.Throwable,boolean,boolean,org.bukkit.command.Command,org.bukkit.command.CommandSender,java.lang.String%5B%5D)"class="member-name-link">ServerCommandException</a><wbr>(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> message,
<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Throwable.html"title="class or interface in java.lang"class="external-link">Throwable</a> cause,
boolean enableSuppression,
boolean writableStackTrace,
<ahref="../../../../org/bukkit/command/Command.html"title="class in org.bukkit.command">Command</a> command,
<ahref="../../../../org/bukkit/command/CommandSender.html"title="interface in org.bukkit.command">CommandSender</a> commandSender,
<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a>[] arguments)</code></div>
<divclass="col-constructor-name odd-row-color"><code><ahref="#%3Cinit%3E(java.lang.String,java.lang.Throwable,org.bukkit.command.Command,org.bukkit.command.CommandSender,java.lang.String%5B%5D)"class="member-name-link">ServerCommandException</a><wbr>(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> message,
<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Throwable.html"title="class or interface in java.lang"class="external-link">Throwable</a> cause,
<ahref="../../../../org/bukkit/command/Command.html"title="class in org.bukkit.command">Command</a> command,
<ahref="../../../../org/bukkit/command/CommandSender.html"title="interface in org.bukkit.command">CommandSender</a> commandSender,
<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a>[] arguments)</code></div>
<divclass="col-constructor-name even-row-color"><code><ahref="#%3Cinit%3E(java.lang.Throwable,org.bukkit.command.Command,org.bukkit.command.CommandSender,java.lang.String%5B%5D)"class="member-name-link">ServerCommandException</a><wbr>(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Throwable.html"title="class or interface in java.lang"class="external-link">Throwable</a> cause,
<ahref="../../../../org/bukkit/command/Command.html"title="class in org.bukkit.command">Command</a> command,
<ahref="../../../../org/bukkit/command/CommandSender.html"title="interface in org.bukkit.command">CommandSender</a> commandSender,
<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a>[] arguments)</code></div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a>[]</code></div>
<divclass="block">Gets the command sender which executed the command request</div>
</div>
</div>
</div>
</div>
<divclass="inherited-list">
<h3id="methods-inherited-from-class-java.lang.Throwable">Methods inherited from class java.lang.<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Throwable.html"title="class or interface in java.lang"class="external-link">Throwable</a></h3>
<code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Throwable.html#addSuppressed(java.lang.Throwable)"title="class or interface in java.lang"class="external-link">addSuppressed</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Throwable.html#fillInStackTrace()"title="class or interface in java.lang"class="external-link">fillInStackTrace</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Throwable.html#getCause()"title="class or interface in java.lang"class="external-link">getCause</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Throwable.html#getLocalizedMessage()"title="class or interface in java.lang"class="external-link">getLocalizedMessage</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Throwable.html#getMessage()"title="class or interface in java.lang"class="external-link">getMessage</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Throwable.html#getStackTrace()"title="class or interface in java.lang"class="external-link">getStackTrace</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Throwable.html#getSuppressed()"title="class or interface in java.lang"class="external-link">getSuppressed</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Throwable.html#initCause(java.lang.Throwable)"title="class or interface in java.lang"class="external-link">initCause</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Throwable.html#printStackTrace()"title="class or interface in java.lang"class="external-link">printStackTrace</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Throwable.html#printStackTrace(java.io.PrintStream)"title="class or interface in java.lang"class="external-link">printStackTrace</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Throwable.html#printStackTrace(java.io.PrintWriter)"title="class or interface in java.lang"class="external-link">printStackTrace</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Throwable.html#setStackTrace(java.lang.StackTraceElement%5B%5D)"title="class or interface in java.lang"class="external-link">setStackTrace</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Throwable.html#toString()"title="class or interface in java.lang"class="external-link">toString</a></code></div>
<divclass="inherited-list">
<h3id="methods-inherited-from-class-java.lang.Object">Methods inherited from class java.lang.<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a></h3>
<code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#clone()"title="class or interface in java.lang"class="external-link">clone</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"title="class or interface in java.lang"class="external-link">equals</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#finalize()"title="class or interface in java.lang"class="external-link">finalize</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#getClass()"title="class or interface in java.lang"class="external-link">getClass</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#hashCode()"title="class or interface in java.lang"class="external-link">hashCode</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#notify()"title="class or interface in java.lang"class="external-link">notify</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#notifyAll()"title="class or interface in java.lang"class="external-link">notifyAll</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait()"title="class or interface in java.lang"class="external-link">wait</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait(long)"title="class or interface in java.lang"class="external-link">wait</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait(long,int)"title="class or interface in java.lang"class="external-link">wait</a></code></div>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="element-name">ServerCommandException</span><wbr><spanclass="parameters">(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> message,
<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Throwable.html"title="class or interface in java.lang"class="external-link">Throwable</a> cause,
<ahref="../../../../org/bukkit/command/Command.html"title="class in org.bukkit.command">Command</a> command,
<ahref="../../../../org/bukkit/command/CommandSender.html"title="interface in org.bukkit.command">CommandSender</a> commandSender,
<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a>[] arguments)</span></div>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="element-name">ServerCommandException</span><wbr><spanclass="parameters">(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Throwable.html"title="class or interface in java.lang"class="external-link">Throwable</a> cause,
<ahref="../../../../org/bukkit/command/Command.html"title="class in org.bukkit.command">Command</a> command,
<ahref="../../../../org/bukkit/command/CommandSender.html"title="interface in org.bukkit.command">CommandSender</a> commandSender,
<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a>[] arguments)</span></div>
<divclass="member-signature"><spanclass="modifiers">protected</span> <spanclass="element-name">ServerCommandException</span><wbr><spanclass="parameters">(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> message,
<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Throwable.html"title="class or interface in java.lang"class="external-link">Throwable</a> cause,
boolean enableSuppression,
boolean writableStackTrace,
<ahref="../../../../org/bukkit/command/Command.html"title="class in org.bukkit.command">Command</a> command,
<ahref="../../../../org/bukkit/command/CommandSender.html"title="interface in org.bukkit.command">CommandSender</a> commandSender,
<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a>[] arguments)</span></div>
</section>
</li>
</ul>
</section>
</li>
<!-- ============ METHOD DETAIL ========== -->
<li>
<sectionclass="method-details"id="method-detail">
<h2>Method Details</h2>
<ulclass="member-list">
<li>
<sectionclass="detail"id="getCommand()">
<h3>getCommand</h3>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="../../../../org/bukkit/command/Command.html"title="class in org.bukkit.command">Command</a></span> <spanclass="element-name">getCommand</span>()</div>
<divclass="block">Gets the command which threw the exception</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>exception throwing command</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getCommandSender()">
<h3>getCommandSender</h3>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="../../../../org/bukkit/command/CommandSender.html"title="interface in org.bukkit.command">CommandSender</a></span> <spanclass="element-name">getCommandSender</span>()</div>
<divclass="block">Gets the command sender which executed the command request</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>command sender of exception thrown command request</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getArguments()">
<h3>getArguments</h3>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a>[]</span> <spanclass="element-name">getArguments</span>()</div>
<divclass="block">Gets the arguments which threw the exception for the command</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>arguments of exception thrown command request</dd>