Class MissingArgumentException

  • All Implemented Interfaces:
    Serializable

    public class MissingArgumentException
    extends ParseException
    Thrown when an option requiring an argument is not provided with an argument.
    Version:
    $Id: MissingArgumentException.java 1443102 2013-02-06 18:12:16Z tn $
    See Also:
    Serialized Form
    • Constructor Detail

      • MissingArgumentException

        public MissingArgumentException​(String message)
        Construct a new MissingArgumentException with the specified detail message.
        Parameters:
        message - the detail message
      • MissingArgumentException

        public MissingArgumentException​(Option option)
        Construct a new MissingArgumentException with the specified detail message.
        Parameters:
        option - the option requiring an argument
        Since:
        1.2
    • Method Detail

      • getOption

        public Option getOption()
        Return the option requiring an argument that wasn't provided on the command line.
        Returns:
        the related option
        Since:
        1.2