jargs.gnu.exception
Class NotFlagException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by jargs.gnu.exception.OptionException
              extended by jargs.gnu.exception.UnknownOptionException
                  extended by jargs.gnu.exception.NotFlagException
All Implemented Interfaces:
java.io.Serializable

public class NotFlagException
extends UnknownOptionException

Thrown when the parsed commandline contains multiple concatenated short options, such as -abcd, where one or more requires a value.

Author:
Philipp Eichhorn, All JArgs authors see JARGS_LICENCE
See Also:
Serialized Form

Constructor Summary
NotFlagException(java.lang.String option, char notFlag)
          Constructor
 
Method Summary
 char getOptionChar()
           
 
Methods inherited from class jargs.gnu.exception.UnknownOptionException
getOptionName
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NotFlagException

public NotFlagException(java.lang.String option,
                        char notFlag)
Constructor

Parameters:
option - The name of the option whose value was illegal (e.g. "-u").
notFlag - The first character which wasn't a boolean
Method Detail

getOptionChar

public char getOptionChar()
Returns:
The first character which wasn't a boolean (e.g 'c')