Class MissingArgumentException

All Implemented Interfaces:
Serializable

public class MissingArgumentException extends ParseException
Thrown when an option requiring an argument is not provided with an argument.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      This exception serialVersionUID.
      See Also:
    • option

      private Option option
      The option requiring additional arguments
  • Constructor Details

    • MissingArgumentException

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

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

    • 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