Class UnrecognizedOptionException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AmbiguousOptionException

public class UnrecognizedOptionException extends ParseException
Exception thrown during parsing signalling an unrecognized option was seen.
Version:
$Id: UnrecognizedOptionException.java 1443102 2013-02-06 18:12:16Z tn $
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      This exception serialVersionUID.
      See Also:
    • option

      private String option
      The unrecognized option
  • Constructor Details

    • UnrecognizedOptionException

      public UnrecognizedOptionException(String message)
      Construct a new UnrecognizedArgumentException with the specified detail message.
      Parameters:
      message - the detail message
    • UnrecognizedOptionException

      public UnrecognizedOptionException(String message, String option)
      Construct a new UnrecognizedArgumentException with the specified option and detail message.
      Parameters:
      message - the detail message
      option - the unrecognized option
      Since:
      1.2
  • Method Details

    • getOption

      public String getOption()
      Returns the unrecognized option.
      Returns:
      the related option
      Since:
      1.2