Class CommandLineParser.InvalidOptionsException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.portal.common.CommandLineParser.InvalidOptionsException
All Implemented Interfaces:
Serializable
Enclosing class:
CommandLineParser

public class CommandLineParser.InvalidOptionsException extends Exception
Signals that an exception occurred while the command line arguments were being parsed.
See Also:
  • Constructor Details

    • InvalidOptionsException

      public InvalidOptionsException(CommandLineParser parser, String msg)
      An error occurred while parsing the command line arguments.

      Parameters:
      parser - The parser class that encountered an error when parsing the command line arguments.
      msg - A non-localized string description of the error.
  • Method Details

    • getArgs

      public String[] getArgs()
      Get the command line arguments that could not be parsed.

      Returns:
      The command line arguments that could not be parsed.
    • getHelp

      public String getHelp()
      Get the help string that describes the syntax required by the options class and a desciption of each option supported.

      Returns:
      The appropriate help string.