public class AlreadySelectedException extends ParseException
| Constructor | Description |
|---|---|
AlreadySelectedException(OptionGroup optionGroup,
Option option) |
Constructs a new
AlreadySelectedException for the specified option group. |
AlreadySelectedException(String message) |
Constructs a new
AlreadySelectedException with the specified detail message. |
| Modifier and Type | Method | Description |
|---|---|---|
Option |
getOption() |
Gets the option that was added to the group and triggered the exception.
|
OptionGroup |
getOptionGroup() |
Gets the option group where another option has been selected.
|
wrapaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic AlreadySelectedException(OptionGroup optionGroup, Option option)
AlreadySelectedException for the specified option group.optionGroup - the option group already selected.option - the option that triggered the exception.public AlreadySelectedException(String message)
AlreadySelectedException with the specified detail message.message - the detail message.public Option getOption()
public OptionGroup getOptionGroup()
Copyright © 2002-2025 The Apache Software Foundation. All rights reserved.Apache Commons CLI | Issue management | Source repository