Class AmbiguousNodeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalStateException
cloud.commandframework.exceptions.AmbiguousNodeException
- All Implemented Interfaces:
Serializable
Exception thrown when a
CommandContext
is being inserted into a CommandTree
and an ambiguity
is detected.- See Also:
- Serialized Form
-
Constructor Summary
ConstructorDescriptionAmbiguousNodeException(@Nullable CommandArgument<?,?> parentNode, @NonNull CommandArgument<?,?> ambiguousNode, @NonNull List<@NonNull CommandArgument<?,?>> children)
Construct a new ambiguous node exception -
Method Summary
Modifier and TypeMethodDescription@NonNull CommandArgument<?,?>
Get the ambiguous node@NonNull List<@NonNull CommandArgument<?,?>>
Get all children of the parent@Nullable CommandArgument<?,?>
Get the parent nodeMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AmbiguousNodeException
public AmbiguousNodeException(@Nullable CommandArgument<?,?> parentNode, @NonNull CommandArgument<?,?> ambiguousNode, @NonNull List<@NonNull CommandArgument<?,?>> children)Construct a new ambiguous node exception- Parameters:
parentNode
- Parent nodeambiguousNode
- Node that caused exceptionchildren
- All children of the parent
-
-
Method Details
-
getParentNode
Get the parent node- Returns:
- Parent node
-
getAmbiguousNode
Get the ambiguous node- Returns:
- Ambiguous node
-
getChildren
Get all children of the parent- Returns:
- Child nodes
-
getMessage
- Overrides:
getMessage
in classThrowable
-