Class MissingOptionValueException

  • All Implemented Interfaces:
    java.io.Serializable

    public class MissingOptionValueException
    extends OptionParserException
    Thrown when an option requiring a value is not provided with a value.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      MissingOptionValueException​(Option option)
      Construct a new MissingOptionValueException with the specified detail message.
      MissingOptionValueException​(java.lang.String message)
      Construct a new MissingOptionValueException with the specified detail message.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Option getOption()
      Return the option requiring a value that wasn't provided on the command line.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, 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

      • MissingOptionValueException

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

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

      • getOption

        public Option getOption()
        Return the option requiring a value that wasn't provided on the command line.
        Returns:
        the related option