public class AlreadySelectedException extends ParseException
Constructor and Description |
---|
AlreadySelectedException(OptionGroup group,
Option option)
Construct a new
AlreadySelectedException
for the specified option group. |
AlreadySelectedException(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.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public AlreadySelectedException(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()
Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.