Class CommandParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
cloud.commandframework.exceptions.CommandParseException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ArgumentParseException
,InvalidCommandSenderException
,InvalidSyntaxException
,NoPermissionException
,NoSuchCommandException
Exception thrown when parsing user input into a command
- See Also:
-
Constructor Summary
ModifierConstructorDescriptionprotected
CommandParseException
(@NonNull Object commandSender, @NonNull List<CommandArgument<?, ?>> currentChain) Construct a new command parse exception -
Method Summary
Modifier and TypeMethodDescription@NonNull Object
Get the command sender@NonNull List<@NonNull CommandArgument<?,
?>> Get the command chain leading up to the exceptionMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CommandParseException
@API(status=INTERNAL, consumers="cloud.commandframework.*") protected CommandParseException(@NonNull Object commandSender, @NonNull List<CommandArgument<?, ?>> currentChain) Construct a new command parse exception- Parameters:
commandSender
- Sender who executed the commandcurrentChain
- Chain leading up to the exception
-
-
Method Details
-
getCommandSender
Get the command sender- Returns:
- Command sender
-
getCurrentChain
Get the command chain leading up to the exception- Returns:
- Unmodifiable list of command arguments
-