Package org.incendo.cloud.exception
Class NoSuchCommandException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
org.incendo.cloud.exception.CommandParseException
org.incendo.cloud.exception.NoSuchCommandException
- All Implemented Interfaces:
Serializable
Exception thrown when a command sender tries to execute
a command that doesn't exist
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNoSuchCommandException(@NonNull Object commandSender, @NonNull List<CommandComponent<?>> currentChain, @NonNull String command) Construct a no such command exception -
Method Summary
Modifier and TypeMethodDescriptionReturns the supplied command.Methods inherited from class org.incendo.cloud.exception.CommandParseException
commandSender, currentChainMethods inherited from class java.lang.Throwable
addSuppressed, getCause, getLocalizedMessage, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NoSuchCommandException
@API(status=INTERNAL, consumers="org.incendo.cloud.*") public NoSuchCommandException(@NonNull Object commandSender, @NonNull List<CommandComponent<?>> 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:
getMessagein classThrowable
-
suppliedCommand
Returns the supplied command.- Returns:
- supplied command
-
fillInStackTrace
- Overrides:
fillInStackTracein classThrowable
-
initCause
-