Class AmbiguousOptionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.aspectran.shell.command.option.OptionParserException
com.aspectran.shell.command.option.UnrecognizedOptionException
com.aspectran.shell.command.option.AmbiguousOptionException
- All Implemented Interfaces:
Serializable
Exception thrown when an option can't be identified from a partial name.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAmbiguousOptionException
(String option, Collection<String> matchingOptions) Constructs a new AmbiguousOptionException. -
Method Summary
Modifier and TypeMethodDescriptionReturns the options matching the partial name.Methods inherited from class com.aspectran.shell.command.option.UnrecognizedOptionException
getOption
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AmbiguousOptionException
Constructs a new AmbiguousOptionException.- Parameters:
option
- the partial option namematchingOptions
- the options matching the name
-
-
Method Details
-
getMatchingOptions
Returns the options matching the partial name.- Returns:
- a collection of options matching the name
-