Package org.incendo.cloud.exception
Class AmbiguousNodeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalStateException
org.incendo.cloud.exception.AmbiguousNodeException
- All Implemented Interfaces:
Serializable
Exception thrown when a
CommandContext
is being inserted into a CommandTree and an ambiguity
is detected.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAmbiguousNodeException(@Nullable CommandNode<?> parentNode, @NonNull CommandNode<?> ambiguousNode, @NonNull List<@NonNull CommandNode<?>> children) Construct a new ambiguous node exception -
Method Summary
Modifier and TypeMethodDescriptionReturns the ambiguous node.children()Returns all children of the parent.Returns the parent node.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AmbiguousNodeException
@API(status=INTERNAL, consumers="org.incendo.cloud.*") public AmbiguousNodeException(@Nullable CommandNode<?> parentNode, @NonNull CommandNode<?> ambiguousNode, @NonNull List<@NonNull CommandNode<?>> children) Construct a new ambiguous node exception- Parameters:
parentNode- Parent nodeambiguousNode- Node that caused exceptionchildren- All children of the parent
-
-
Method Details
-
parentNode
Returns the parent node.- Returns:
- parent node
-
ambiguousNode
Returns the ambiguous node.- Returns:
- ambiguous node
-
children
Returns all children of the parent.- Returns:
- child nodes
-
getMessage
- Overrides:
getMessagein classThrowable
-