|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception name.kevinlocke.ultragetopt.CommandLineException name.kevinlocke.ultragetopt.AmbiguousOptionException
public class AmbiguousOptionException
Exception signaling that an option could be matched against multiple accepted options. This will occur if UltraGetopt is set to attempt partial matching of options and encounters an option which can be matched against multiple long options. For example, the option "-out" could be matched against the "--output" or "--outlet" options and there is no reasonable way to determine which option was intended.
UltraGetopt.Behavior.PARTIAL_MATCHING
,
Serialized FormConstructor Summary | |
---|---|
AmbiguousOptionException(GetoptErrorFormatter formatter,
char option,
java.lang.String leaders)
Creates a new ambiguous option exception with a message generated by a given formatter. |
|
AmbiguousOptionException(GetoptErrorFormatter formatter,
java.lang.String option,
java.lang.String leaders)
Creates a new ambiguous option exception with a message generated by a given formatter. |
|
AmbiguousOptionException(java.lang.String message)
Creates a new ambiguous option exception with the given error message. |
Method Summary |
---|
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 AmbiguousOptionException(java.lang.String message)
message
- the error message indicating the cause of this exception.public AmbiguousOptionException(GetoptErrorFormatter formatter, java.lang.String option, java.lang.String leaders)
formatter
- the formatter to use for generating the error messageoption
- the option which was ambiguousleaders
- the leader characters for that optionpublic AmbiguousOptionException(GetoptErrorFormatter formatter, char option, java.lang.String leaders)
formatter
- the formatter to use for generating the error messageoption
- the option which was ambiguousleaders
- the leader characters for that option
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |