public class AlreadySelectedException extends ParseException
Modifier and Type | Field and Description |
---|---|
private OptionGroup |
group
The option group selected.
|
private Option |
option
The option that triggered the exception.
|
private static long |
serialVersionUID
This exception
serialVersionUID . |
Constructor and Description |
---|
AlreadySelectedException(OptionGroup group,
Option option)
Construct a new
AlreadySelectedException
for the specified option group. |
AlreadySelectedException(java.lang.String message)
Construct a new
AlreadySelectedException
with the specified detail message. |
Modifier and Type | Method and 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.
|
private static final long serialVersionUID
serialVersionUID
.private OptionGroup group
private Option option
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()
public Option getOption()