Class OptionException

All Implemented Interfaces:
Serializable

public final class OptionException
extends Exception
Exception for command-line option parsing problems.
Author:
Giles Winstanley
See Also:
Serialized Form
  • Field Details

    • LOCALE

      protected static final Locale LOCALE
      Locale for help/error display.
    • BUNDLE

      protected static final ResourceBundle BUNDLE
      Resources for internationalization.
  • Constructor Details

    • OptionException

      public OptionException​(OptionException.Type type, Option option, String optionValue)
      Creates a new OptionException instance.
      Parameters:
      type - type of OptionException to create (i.e. reason)
      option - Option instance for which this exception is being created
      optionValue - value of the option for which this exception is being created
    • OptionException

      public OptionException​(OptionException.Type type, String optionName, String optionValue)
      Creates a new OptionException instance.
      Parameters:
      type - type of OptionException to create (i.e. reason)
      optionName - name of the option for which this exception is being created
      optionValue - value of the option for which this exception is being created
    • OptionException

      public OptionException​(OptionException.Type type, String optionName, char flag)
      Creates a new OptionException instance.
      Parameters:
      type - type of OptionException to create (i.e. reason)
      optionName - name of the option for which this exception is being created
      flag - flag character for which this exception is being created
    • OptionException

      public OptionException​(OptionException.Type type, Option option)
      Creates a new OptionException instance.
      Parameters:
      type - type of OptionException to create (i.e. reason)
      option - Option instance for which this exception is being created
    • OptionException

      public OptionException​(OptionException.Type type, String optionName)
      Creates a new OptionException instance.
      Parameters:
      type - type of OptionException to create (i.e. reason)
      optionName - name of the option for which this exception is being created
  • Method Details