mirror of
https://github.com/aikar/commands.git
synced 2026-06-28 01:18:26 +00:00
add Exception to the name
This commit is contained in:
+2
-2
@@ -23,8 +23,8 @@
|
||||
|
||||
package co.aikar.commands;
|
||||
|
||||
public class InvalidCommandContext extends RuntimeException {
|
||||
InvalidCommandContext(String message) {
|
||||
public class InvalidCommandContextException extends RuntimeException {
|
||||
InvalidCommandContextException(String message) {
|
||||
super(message);
|
||||
}
|
||||
}
|
||||
@@ -105,7 +105,7 @@ public class RegisteredCommand <R extends CommandExecutionContext<? extends Comm
|
||||
}
|
||||
}
|
||||
} else {
|
||||
ACFUtil.sneaky(new InvalidCommandContext(
|
||||
ACFUtil.sneaky(new InvalidCommandContextException(
|
||||
"Parameter " + type.getSimpleName() + " of " + this.command + " has no applicable context resolver"
|
||||
));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user