|
|||||||||
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.ExtraArgumentException
public class ExtraArgumentException
Exception signaling that an option which does not take an argument was given an argument. Normally, if an option which does not take an argument is followed by an argument that argument will be interpreted as a non-option argument and no exception will occur. However, if an option which does not take an argument is assigned an argument (connected by an assigner character), then this exception will occur.
Constructor Summary | |
---|---|
ExtraArgumentException(GetoptErrorFormatter formatter,
char option,
java.lang.String leaders)
Create a new extra argument exception with a message generated by a given formatter. |
|
ExtraArgumentException(GetoptErrorFormatter formatter,
java.lang.String option,
java.lang.String leaders)
Create a new extra argument exception with a message generated by a given formatter. |
|
ExtraArgumentException(java.lang.String message)
Create a new extra argument 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 ExtraArgumentException(java.lang.String message)
message
- the error message indicating the cause of this exceptionpublic ExtraArgumentException(GetoptErrorFormatter formatter, java.lang.String option, java.lang.String leaders)
formatter
- the formatter to use for generating the error messageoption
- the option which was given an extra argumentleaders
- the leader characters for that optionpublic ExtraArgumentException(GetoptErrorFormatter formatter, char option, java.lang.String leaders)
formatter
- the formatter to use for generating the error messageoption
- the option which was given an extra argumentleaders
- the leader characters for that option
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |