Package org.incendo.cloud.exception
Class InvalidSyntaxException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
org.incendo.cloud.exception.CommandParseException
org.incendo.cloud.exception.InvalidSyntaxException
- All Implemented Interfaces:
Serializable
Exception sent when a command sender inputs invalid command syntax
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInvalidSyntaxException(@NonNull String correctSyntax, @NonNull Object commandSender, @NonNull List<@NonNull CommandComponent<?>> currentChain) Create a new invalid syntax exception instance -
Method Summary
Methods inherited from class org.incendo.cloud.exception.CommandParseException
commandSender, currentChainMethods 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="org.incendo.cloud.*") public InvalidSyntaxException(@NonNull String correctSyntax, @NonNull Object commandSender, @NonNull List<@NonNull CommandComponent<?>> currentChain) Create a new invalid syntax exception instance- Parameters:
correctSyntax- Expected syntaxcommandSender- Sender that sent the commandcurrentChain- Chain leading up to issue
-
-
Method Details
-
correctSyntax
Returns the correct syntax of the command.- Returns:
- correct command syntax
-
getMessage
- Overrides:
getMessagein classThrowable
-