Class MissingValueException

All Implemented Interfaces:
Serializable

public class MissingValueException extends CLIException
Exception thrown when an option requiring a value does not receive the value, or when a mandatory argument does not receive a value.
Author:
Clement Escoffier invalid input: '<'[email protected]>
See Also:
  • Constructor Details

    • MissingValueException

      public MissingValueException(Option option)
      Creates a new instance of MissingValueException when an option requiring a value does not receive a value.
      Parameters:
      option - the option
    • MissingValueException

      public MissingValueException(Argument argument)
      Creates a new instance of MissingValueException when a mandatory argument is not set in the user command line.
      Parameters:
      argument - the argument
  • Method Details

    • getOption

      public Option getOption()
      Returns:
      the option, may be null if the exception is about an argument.
    • getArgument

      public Argument getArgument()
      Returns:
      the argument, may be null if the exception is about an option.