Class CmdLnArgumentException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ExtraCmdLnArgumentException, MissingCmdLnArgumentException

public class CmdLnArgumentException extends CmdLnException
Exception thrown for a problem with a specific command line option. More information about this class and code samples for suggested use are available from ostermiller.org.
Since:
ostermillerutils 1.07.00
Author:
Stephen Ostermiller https://ostermiller.org/contact.pl?regarding=Java+Utilities
See Also:
  • Method Details

    • getResult

      public CmdLnResult getResult()
      Get the partial result with missing arguments.
      Returns:
      the partial result
      Since:
      ostermillerutils 1.07.00
    • getOption

      public CmdLnOption getOption()
      Get the option that caused this exception
      Returns:
      the option
      Since:
      ostermillerutils 1.07.00
    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable
      Returns:
      message with the option name
      Since:
      ostermillerutils 1.07.00