Package io.vertx.core.cli
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
public class AmbiguousOptionException extends CLIException
Exception thrown when the command line is ambiguous meaning it cannot determine exactly which option has to be set.- Author:
- Clement Escoffier
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AmbiguousOptionException(String token, List<Option> matchingOpts)
Creates a new instance ofAmbiguousOptionException
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Option>
getOptions()
String
getToken()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
AmbiguousOptionException
public AmbiguousOptionException(String token, List<Option> matchingOpts)
Creates a new instance ofAmbiguousOptionException
.- Parameters:
token
- the ambiguous tokenmatchingOpts
- the list of potential matches
-
-