public class AlreadySelectedException extends ParseException
| Constructor | Description |
|---|---|
AlreadySelectedException(java.lang.String message) |
Construct a new
AlreadySelectedException
with the specified detail message. |
AlreadySelectedException(OptionGroup group,
Option option) |
Construct a new
AlreadySelectedException
for the specified option group. |
| Modifier and Type | Method | Description |
|---|---|---|
Option |
getOption() |
Returns the option that was added to the group and triggered the exception.
|
OptionGroup |
getOptionGroup() |
Returns the option group where another option has been selected.
|
public AlreadySelectedException(java.lang.String message)
AlreadySelectedException
with the specified detail message.message - the detail messagepublic AlreadySelectedException(OptionGroup group, Option option)
AlreadySelectedException
for the specified option group.group - the option group already selectedoption - the option that triggered the exceptionpublic OptionGroup getOptionGroup()