Class NoCommandInLeafException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.IllegalStateException
-
- cloud.commandframework.exceptions.NoCommandInLeafException
-
- All Implemented Interfaces:
java.io.Serializable
public final class NoCommandInLeafException extends java.lang.IllegalStateException
Thrown when aCommandArgument
that is registered as a leaf node, does not contain an owningCommand
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NoCommandInLeafException(@NonNull CommandArgument<?,?> commandArgument)
Create a new no command in leaf exception instance
-
Method Summary
Modifier and Type Method Description @NonNull CommandArgument<?,?>
getCommandArgument()
Get the command argument
-
-
-
Constructor Detail
-
NoCommandInLeafException
public NoCommandInLeafException(@NonNull CommandArgument<?,?> commandArgument)
Create a new no command in leaf exception instance- Parameters:
commandArgument
- Command argument that caused the exception
-
-
Method Detail
-
getCommandArgument
public @NonNull CommandArgument<?,?> getCommandArgument()
Get the command argument- Returns:
- Command argument
-
-