Package studio.mevera.imperat.exception
Class AmbiguousCommandException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
studio.mevera.imperat.exception.AmbiguousCommandException
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAmbiguousCommandException(Command<S> rootCmd, Command<S> otherCmd) Thrown when a root command with the same name/alias already exists in the command mapping.AmbiguousCommandException(Command<S> rootCommand, CommandNode<S, ?> node, Collection<CommandNode<S, ?>> filteredChildren) Thrown when a root command has two or more command usages with the same syntax at any parameter. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AmbiguousCommandException
public AmbiguousCommandException(Command<S> rootCommand, CommandNode<S, ?> node, Collection<CommandNode<S, ?>> filteredChildren) Thrown when a root command has two or more command usages with the same syntax at any parameter.- Type Parameters:
S- the command source type- Parameters:
rootCommand- the root command that has ambiguous syntaxnode- the command node that represents the parameter with ambiguous syntax
-
AmbiguousCommandException
Thrown when a root command with the same name/alias already exists in the command mapping.- Type Parameters:
S- the command source type- Parameters:
rootCmd- the root command that is being registered and has a name that already exists in the command mapping.
-
AmbiguousCommandException
-