|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.apache.commons.cli.ParseException
org.apache.commons.cli.AlreadySelectedException
public class AlreadySelectedException
Thrown when more than one option in an option group has been provided.
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AlreadySelectedException(String message)
AlreadySelectedException
with the specified detail message.
message - the detail message
public AlreadySelectedException(OptionGroup group,
Option option)
AlreadySelectedException
for the specified option group.
group - the option group already selectedoption - the option that triggered the exception| Method Detail |
|---|
public OptionGroup getOptionGroup()
public Option getOption()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||