Class InvalidSyntaxException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
cloud.commandframework.exceptions.CommandParseException
cloud.commandframework.exceptions.InvalidSyntaxException
- All Implemented Interfaces:
Serializable
Exception sent when a command sender inputs invalid command syntax
- See Also:
-
Constructor Summary
ConstructorDescriptionInvalidSyntaxException
(@NonNull String correctSyntax, @NonNull Object commandSender, @NonNull List<@NonNull CommandArgument<?, ?>> currentChain) Create a new invalid syntax exception instance -
Method Summary
Methods inherited from class cloud.commandframework.exceptions.CommandParseException
getCommandSender, getCurrentChain
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidSyntaxException
@API(status=INTERNAL, consumers="cloud.commandframework.*") public InvalidSyntaxException(@NonNull String correctSyntax, @NonNull Object commandSender, @NonNull List<@NonNull CommandArgument<?, ?>> currentChain) Create a new invalid syntax exception instance- Parameters:
correctSyntax
- Expected syntaxcommandSender
- Sender that sent the commandcurrentChain
- Chain leading up to issue
-
-
Method Details
-
getCorrectSyntax
Get the correct syntax of the command- Returns:
- Correct command syntax
-
getMessage
- Overrides:
getMessage
in classThrowable
-