Class AmbiguousOptionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.vertx.core.cli.CLIException
io.vertx.core.cli.AmbiguousOptionException
- All Implemented Interfaces:
Serializable
Exception thrown when the command line is ambiguous meaning it cannot determine exactly which option has to be set.
- Author:
- Clement Escoffier invalid input: '<'[email protected]>
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAmbiguousOptionException(String token, List<Option> matchingOpts) Creates a new instance ofAmbiguousOptionException. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AmbiguousOptionException
Creates a new instance ofAmbiguousOptionException.- Parameters:
token- the ambiguous tokenmatchingOpts- the list of potential matches
-
-
Method Details
-
getOptions
-
getToken
- Returns:
- the token triggering the ambiguity.
-