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:
java.io.Serializable
public final class NoSuchCommandException extends CommandParseException
Exception thrown when a command sender tries to execute a command that doesn't exist- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NoSuchCommandException(@NonNull java.lang.Object commandSender, @NonNull java.util.List<CommandArgument<?,?>> currentChain, @NonNull java.lang.String command)
Construct a no such command exception
-
Method Summary
Modifier and Type Method Description java.lang.Throwable
fillInStackTrace()
java.lang.String
getMessage()
@NonNull java.lang.String
getSuppliedCommand()
Get the supplied commandjava.lang.Throwable
initCause(java.lang.Throwable cause)
-
Methods inherited from class cloud.commandframework.exceptions.CommandParseException
getCommandSender, getCurrentChain
-
-
-
-
Constructor Detail
-
NoSuchCommandException
public NoSuchCommandException(@NonNull java.lang.Object commandSender, @NonNull java.util.List<CommandArgument<?,?>> currentChain, @NonNull java.lang.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 Detail
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessage
in classjava.lang.Throwable
-
getSuppliedCommand
public @NonNull java.lang.String getSuppliedCommand()
Get the supplied command- Returns:
- Supplied command
-
fillInStackTrace
public java.lang.Throwable fillInStackTrace()
- Overrides:
fillInStackTrace
in classjava.lang.Throwable
-
initCause
public java.lang.Throwable initCause(java.lang.Throwable cause)
- Overrides:
initCause
in classjava.lang.Throwable
-
-