public class AlreadySelectedException extends ParseException
Constructor and Description |
---|
AlreadySelectedException(OptionGroup group,
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 and 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.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public AlreadySelectedException(OptionGroup group, Option option)
AlreadySelectedException
for the specified option group.group
- the option group already selectedoption
- the option that triggered the exceptionpublic AlreadySelectedException(String message)
AlreadySelectedException
with the specified detail message.message
- the detail messagepublic Option getOption()
public OptionGroup getOptionGroup()
Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.