Class InvalidCommandSenderException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.IllegalArgumentException
-
- cloud.commandframework.exceptions.CommandParseException
-
- cloud.commandframework.exceptions.InvalidCommandSenderException
-
- All Implemented Interfaces:
java.io.Serializable
public final class InvalidCommandSenderException extends CommandParseException
Exception thrown when an invalid command sender tries to execute a command- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InvalidCommandSenderException(@NonNull java.lang.Object commandSender, @NonNull java.lang.Class<?> requiredSender, @NonNull java.util.List<@NonNull CommandArgument<?,?>> currentChain)
Construct a new command parse exception
-
Method Summary
Modifier and Type Method Description java.lang.String
getMessage()
@NonNull java.lang.Class<?>
getRequiredSender()
Get the required sender type-
Methods inherited from class cloud.commandframework.exceptions.CommandParseException
getCommandSender, getCurrentChain
-
-
-
-
Constructor Detail
-
InvalidCommandSenderException
public InvalidCommandSenderException(@NonNull java.lang.Object commandSender, @NonNull java.lang.Class<?> requiredSender, @NonNull java.util.List<@NonNull CommandArgument<?,?>> currentChain)
Construct a new command parse exception- Parameters:
commandSender
- Sender who executed the commandrequiredSender
- The sender type that is requiredcurrentChain
- Chain leading up to the exception
-
-