Class MissingArgumentException

    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Option getOption()
      Return the option requiring an argument 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

      • 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​(java.lang.String message)
        Construct a new MissingArgumentException with the specified detail message.
        Parameters:
        message - the detail message
    • 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