Package org.incendo.cloud.exception
Class CommandParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
org.incendo.cloud.exception.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
ConstructorsModifierConstructorDescriptionprotectedCommandParseException(@NonNull Object commandSender, @NonNull List<CommandComponent<?>> currentChain) Construct a new command parse exception -
Method Summary
Modifier and TypeMethodDescriptionReturns the command sender.Returns the command chain leading up to the exception.Methods 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="org.incendo.cloud.*") protected CommandParseException(@NonNull Object commandSender, @NonNull List<CommandComponent<?>> currentChain) Construct a new command parse exception- Parameters:
commandSender- Sender who executed the commandcurrentChain- Chain leading up to the exception
-
-
Method Details
-
commandSender
Returns the command sender.- Returns:
- command sender
-
currentChain
Returns the command chain leading up to the exception.- Returns:
- unmodifiable list of command arguments
-