Class NoCommandInLeafException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalStateException
cloud.commandframework.exceptions.NoCommandInLeafException
- All Implemented Interfaces:
Serializable
Thrown when a
CommandArgument
that is registered as a leaf node, does not contain an owning Command
- See Also:
-
Constructor Summary
ConstructorDescriptionNoCommandInLeafException
(@NonNull CommandArgument<?, ?> commandArgument) Create a new no command in leaf exception instance -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NoCommandInLeafException
@API(status=INTERNAL, consumers="cloud.commandframework.*") public NoCommandInLeafException(@NonNull CommandArgument<?, ?> commandArgument) Create a new no command in leaf exception instance- Parameters:
commandArgument
- Command argument that caused the exception
-
-
Method Details
-
getCommandArgument
Get the command argument- Returns:
- Command argument
-