Top Description Fields Constructors Methods
io.vertx.core.cli

public Class AmbiguousOptionException

extends CLIException
Class Inheritance
Imports
java.util.List, java.util.stream.Collectors

Exception thrown when the command line is ambiguous meaning it cannot determine exactly which option has to be set.
Author
Clement Escoffier

Field Summary

Modifier and TypeField and Description
private final List<Option>
private final String

Constructor Summary

AccessConstructor and Description
public
AmbiguousOptionException(String
the ambiguous token
token
,
List<Option>
the list of potential matches
matchingOpts
)

Creates a new instance of AmbiguousOptionException.

Method Summary

Modifier and TypeMethod and Description
public List<Option>

Returns:

the list of potential matches.
getOptions
()

public String

Returns:

the token triggering the ambiguity.
getToken
()

Field Detail

optionsback to summary
private final List<Option> options
tokenback to summary
private final String token

Constructor Detail

AmbiguousOptionExceptionback to summary
public AmbiguousOptionException(String token, List<Option> matchingOpts)

Creates a new instance of AmbiguousOptionException.

Parameters
token:String

the ambiguous token

matchingOpts:List<Option>

the list of potential matches

Method Detail

getOptionsback to summary
public List<Option> getOptions()
Returns:List<Option>

the list of potential matches.

getTokenback to summary
public String getToken()
Returns:String

the token triggering the ambiguity.