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
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      This exception serialVersionUID.
      See Also:
    • matchingOptions

      private final Collection<String> matchingOptions
      The list of options matching the partial name specified
  • Constructor Details

    • 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 Details

    • createMessage

      private static String createMessage(String option, Collection<String> matchingOptions)
      Build the exception message from the specified list of options.
      Parameters:
      option -
      matchingOptions -
      Returns:
    • getMatchingOptions

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