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:
java.io.Serializable
public class InvalidSyntaxException extends CommandParseException
Exception sent when a command sender inputs invalid command syntax- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InvalidSyntaxException(@NonNull java.lang.String correctSyntax, @NonNull java.lang.Object commandSender, @NonNull java.util.List<@NonNull CommandArgument<?,?>> currentChain)
Create a new invalid syntax exception instance
-
Method Summary
Modifier and Type Method Description @NonNull java.lang.String
getCorrectSyntax()
Get the correct syntax of the commandjava.lang.String
getMessage()
-
Methods inherited from class cloud.commandframework.exceptions.CommandParseException
getCommandSender, getCurrentChain
-
-
-
-
Constructor Detail
-
InvalidSyntaxException
public InvalidSyntaxException(@NonNull java.lang.String correctSyntax, @NonNull java.lang.Object commandSender, @NonNull java.util.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
-
-