com.uc4.ara.collabnet.JArgs
Class CmdLineParser.IllegalOptionValueException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.uc4.ara.collabnet.JArgs.CmdLineParser.OptionException
com.uc4.ara.collabnet.JArgs.CmdLineParser.IllegalOptionValueException
- All Implemented Interfaces:
- java.io.Serializable
- Enclosing class:
- CmdLineParser
public static class CmdLineParser.IllegalOptionValueException
- extends CmdLineParser.OptionException
Thrown when an illegal or missing value is given by the user for
an option that takes a value. getMessage()
returns
an error string suitable for reporting the error to the user (in
English).
No generic class can ever extend java.lang.Throwable
, so we
have to return Option<?>
instead of
Option<T>
.
- See Also:
- Serialized Form
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 |
CmdLineParser.IllegalOptionValueException
public CmdLineParser.IllegalOptionValueException(CmdLineParser.Option<T> opt,
java.lang.String value)
getOption
public CmdLineParser.Option<?> getOption()
- Returns:
- the name of the option whose value was illegal (e.g. "-u")
getValue
public java.lang.String getValue()
- Returns:
- the illegal value
Copyright © 2004-2013. All Rights Reserved.