Class AmbiguousOptionException

  • All Implemented Interfaces:
    Serializable

    public class AmbiguousOptionException
    extends CLIException
    Exception thrown when the command line is ambiguous meaning it cannot determine exactly which option has to be set.
    Author:
    Clement Escoffier
    See Also:
    Serialized Form
    • Constructor Detail

      • AmbiguousOptionException

        public AmbiguousOptionException​(String token,
                                        List<Option> matchingOpts)
        Creates a new instance of AmbiguousOptionException.
        Parameters:
        token - the ambiguous token
        matchingOpts - the list of potential matches
    • Method Detail

      • getOptions

        public List<Option> getOptions()
        Returns:
        the list of potential matches.
      • getToken

        public String getToken()
        Returns:
        the token triggering the ambiguity.