Class AmbiguousNodeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.IllegalStateException
-
- cloud.commandframework.exceptions.AmbiguousNodeException
-
- All Implemented Interfaces:
java.io.Serializable
public final class AmbiguousNodeException extends java.lang.IllegalStateExceptionException thrown when aCommandContextis being inserted into aCommandTreeand an ambiguity is detected.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AmbiguousNodeException(@Nullable CommandArgument<?,?> parentNode, @NonNull CommandArgument<?,?> ambiguousNode, @NonNull java.util.List<@NonNull CommandArgument<?,?>> children)Construct a new ambiguous node exception
-
Method Summary
Modifier and Type Method Description @NonNull CommandArgument<?,?>getAmbiguousNode()Get the ambiguous node@NonNull java.util.List<@NonNull CommandArgument<?,?>>getChildren()Get all children of the parentjava.lang.StringgetMessage()@Nullable CommandArgument<?,?>getParentNode()Get the parent node
-
-
-
Constructor Detail
-
AmbiguousNodeException
public AmbiguousNodeException(@Nullable CommandArgument<?,?> parentNode, @NonNull CommandArgument<?,?> ambiguousNode, @NonNull java.util.List<@NonNull CommandArgument<?,?>> children)
Construct a new ambiguous node exception- Parameters:
parentNode- Parent nodeambiguousNode- Node that caused exceptionchildren- All children of the parent
-
-
Method Detail
-
getParentNode
public @Nullable CommandArgument<?,?> getParentNode()
Get the parent node- Returns:
- Parent node
-
getAmbiguousNode
public @NonNull CommandArgument<?,?> getAmbiguousNode()
Get the ambiguous node- Returns:
- Ambiguous node
-
getChildren
public @NonNull java.util.List<@NonNull CommandArgument<?,?>> getChildren()
Get all children of the parent- Returns:
- Child nodes
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessagein classjava.lang.Throwable
-
-