Class CommandParseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.IllegalArgumentException
-
- cloud.commandframework.exceptions.CommandParseException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
ArgumentParseException
,InvalidCommandSenderException
,InvalidSyntaxException
,NoPermissionException
,NoSuchCommandException
public class CommandParseException extends java.lang.IllegalArgumentException
Exception thrown when parsing user input into a command- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CommandParseException(@NonNull java.lang.Object commandSender, @NonNull java.util.List<CommandArgument<?,?>> currentChain)
Construct a new command parse exception
-
Method Summary
Modifier and Type Method Description @NonNull java.lang.Object
getCommandSender()
Get the command sender@NonNull java.util.List<@NonNull CommandArgument<?,?>>
getCurrentChain()
Get the command chain leading up to the exception
-
-
-
Constructor Detail
-
CommandParseException
protected CommandParseException(@NonNull java.lang.Object commandSender, @NonNull java.util.List<CommandArgument<?,?>> currentChain)
Construct a new command parse exception- Parameters:
commandSender
- Sender who executed the commandcurrentChain
- Chain leading up to the exception
-
-
Method Detail
-
getCommandSender
public @NonNull java.lang.Object getCommandSender()
Get the command sender- Returns:
- Command sender
-
getCurrentChain
public @NonNull java.util.List<@NonNull CommandArgument<?,?>> getCurrentChain()
Get the command chain leading up to the exception- Returns:
- Unmodifiable list of command arguments
-
-