name.kevinlocke.ultragetopt
Class MissingArgumentException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by name.kevinlocke.ultragetopt.CommandLineException
              extended by name.kevinlocke.ultragetopt.MissingArgumentException
All Implemented Interfaces:
java.io.Serializable

public class MissingArgumentException
extends CommandLineException

Exception signaling that an option which requires an argument was not given any arguments. This may occur if the option is the last command-line argument, or if the next command-line argument after this option begins with a leader character.

Author:
Kevin Locke <kwl7@cornell.edu>
See Also:
UltraGetopt.Behavior.ACCEPT_OPTIONLIKE_OPT_ARGS, Serialized Form

Constructor Summary
MissingArgumentException(GetoptErrorFormatter formatter, char option, java.lang.String leaders)
          Create a new missing argument exception with a message generated by a given formatter.
MissingArgumentException(GetoptErrorFormatter formatter, java.lang.String option, java.lang.String leaders)
          Create a new missing argument exception with a message generated by a given formatter.
MissingArgumentException(java.lang.String message)
          Create a new missing 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

MissingArgumentException

public MissingArgumentException(java.lang.String message)
Create a new missing argument exception with the given error message.

Parameters:
message - the error message indicating the cause of this exception

MissingArgumentException

public MissingArgumentException(GetoptErrorFormatter formatter,
                                java.lang.String option,
                                java.lang.String leaders)
Create a new missing argument exception with a message generated by a given formatter.

Parameters:
formatter - the formatter to use for generating the error message
option - the option which was missing an argument
leaders - the leader characters for that option

MissingArgumentException

public MissingArgumentException(GetoptErrorFormatter formatter,
                                char option,
                                java.lang.String leaders)
Create a new missing argument exception with a message generated by a given formatter.

Parameters:
formatter - the formatter to use for generating the error message
option - the option which was missing an argument
leaders - the leader characters for that option