Class CommandNotFoundException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.spongepowered.api.util.ComponentMessageException
-
- org.spongepowered.api.command.exception.CommandException
-
- org.spongepowered.api.command.exception.CommandNotFoundException
-
- All Implemented Interfaces:
java.io.Serializable
,ComponentMessageThrowable
public class CommandNotFoundException extends CommandException
This exception is thrown when a sender tries to execute a command that does not exist.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CommandNotFoundException(Component message, java.lang.String command)
Create an exception with a custom message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
command()
Returns the command that was queried for.-
Methods inherited from class org.spongepowered.api.command.exception.CommandException
shouldIncludeUsage
-
Methods inherited from class org.spongepowered.api.util.ComponentMessageException
componentMessage, getLocalizedMessage, getMessage
-
-
-
-
Constructor Detail
-
CommandNotFoundException
public CommandNotFoundException(Component message, java.lang.String command)
Create an exception with a custom message.- Parameters:
message
- The messagecommand
- The command that was queried for
-
-