Class NoSuchCommandException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
cloud.commandframework.exceptions.CommandParseException
cloud.commandframework.exceptions.NoSuchCommandException
- All Implemented Interfaces:
Serializable
Exception thrown when a command sender tries to execute
a command that doesn't exist
- See Also:
-
Constructor Summary
ConstructorDescriptionNoSuchCommandException
(@NonNull Object commandSender, @NonNull List<CommandArgument<?, ?>> currentChain, @NonNull String command) Construct a no such command exception -
Method Summary
Methods inherited from class cloud.commandframework.exceptions.CommandParseException
getCommandSender, getCurrentChain
Methods inherited from class java.lang.Throwable
addSuppressed, getCause, getLocalizedMessage, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NoSuchCommandException
@API(status=INTERNAL, consumers="cloud.commandframework.*") public NoSuchCommandException(@NonNull Object commandSender, @NonNull List<CommandArgument<?, ?>> currentChain, @NonNull String command) Construct a no such command exception- Parameters:
commandSender
- Sender who executed the commandcurrentChain
- Chain leading up to the exceptioncommand
- Entered command (following the command chain)
-
-
Method Details
-
getMessage
- Overrides:
getMessage
in classThrowable
-
getSuppliedCommand
Get the supplied command- Returns:
- Supplied command
-
fillInStackTrace
- Overrides:
fillInStackTrace
in classThrowable
-
initCause
-