Class AmbiguousCommandException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
studio.mevera.imperat.exception.AmbiguousCommandException
All Implemented Interfaces:
Serializable

public final class AmbiguousCommandException extends RuntimeException
See Also:
  • 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 syntax
      node - the command node that represents the parameter with ambiguous syntax
    • AmbiguousCommandException

      public AmbiguousCommandException(Command<S> rootCmd, Command<S> otherCmd)
      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

      public AmbiguousCommandException(String msg)