- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- Apache.CLI.ParseException
-
- Apache.CLI.UnrecognizedOptionException
-
- Apache.CLI.AmbiguousOptionException
-
- All Implemented Interfaces:
java.io.Serializable
public class AmbiguousOptionException extends UnrecognizedOptionException
This Class-File has been copied, directly from the Apache Commons Software Foundation. Other than the minor, cosmetic changes (mentioned in the second-list below), this file is perfectly identical to the original that may be found on the Apache Website:apache.org
.- The suggested license for using this file may be read here:
Apache License
- The Source-Code Header for this file may be viewed here:
Source-File Header
- Partial contents of the
'site/resources/images'
directory:Resource Images
Notes about changes that have been made as a result of the import process:- Within all files, the original Package-Name declaration has been changed:
Original: package org.apache.commons.cli;
Updated: package Apache.CLI;
- All Classes and Class-Members (Methods, Fields, etc...) that were previously Annotated
with the
@Deprecated
Annotation have been summarily removed.
- Code Formattings and Styling has been heavily modified to conform to the Standard Java-HTML
Indentation & Styling Choices. The code itself remains identical, with only a few
squiggly-braces
'{' and '}'
being removed, for cosmetic reasons (and for lowering "Developer Stress" Levels)..
Exception thrown when an option can't be identified from a partial name.- See Also:
- Serialized Form
Hi-Lited Source-Code:- View Here: Apache/CLI/AmbiguousOptionException.java
- Open New Browser-Tab: Apache/CLI/AmbiguousOptionException.java
File Size: 2,521 Bytes Line Count: 73 '\n' Characters Found
-
-
Constructor Summary
Constructors Constructor Description AmbiguousOptionException(String option, Collection<String> matchingOptions)
Constructs a new AmbiguousOptionException.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<String>
getMatchingOptions()
Gets the options matching the partial name.-
Methods inherited from class Apache.CLI.UnrecognizedOptionException
getOption
-
-
-
-
Constructor Detail
-
AmbiguousOptionException
public AmbiguousOptionException (java.lang.String option, java.util.Collection<java.lang.String> matchingOptions)
Constructs a new AmbiguousOptionException.- Parameters:
option
- the partial option namematchingOptions
- the options matching the name
-
-
Method Detail
-
getMatchingOptions
public java.util.Collection<java.lang.String> getMatchingOptions()
Gets the options matching the partial name.- Returns:
- a collection of options matching the name
- Code:
- Exact Method Body:
return matchingOptions;
-
-