Class AmbiguousOptionException

  • All Implemented Interfaces:
    Serializable

    public class AmbiguousOptionException
    extends UnrecognizedOptionException
    Exception thrown when an option can't be identified from a partial name.
    Since:
    1.3
    Version:
    $Id: AmbiguousOptionException.java 1669814 2015-03-28 18:09:26Z britter $
    See Also:
    Serialized Form
    • Constructor Detail

      • AmbiguousOptionException

        public AmbiguousOptionException​(String option,
                                        Collection<String> matchingOptions)
        Constructs a new AmbiguousOptionException.
        Parameters:
        option - the partial option name
        matchingOptions - the options matching the name
    • Method Detail

      • getMatchingOptions

        public Collection<String> getMatchingOptions()
        Returns the options matching the partial name.
        Returns:
        a collection of options matching the name