Class InvalidOption

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.github.sttk.cliargs.exceptions.InvalidOption
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ConfigHasDefaultsButHasNoArg, ConfigIsArrayButHasNoArg, OptionArgIsInvalid, OptionContainsInvalidChar, OptionIsNotArray, OptionNameIsDuplicated, OptionNeedsArg, OptionTakesNoArg, StoreKeyIsDuplicated, UnconfiguredOption

public abstract class InvalidOption extends Exception
Is the abstract class of the exception that provides a method to retrieve an option name.
See Also:
  • Constructor Details

    • InvalidOption

      protected InvalidOption()
      Constructs an instance of this class.
    • InvalidOption

      protected InvalidOption(Throwable cause)
      Constructs an instance of this class.
      Parameters:
      cause - The cause of this exception.
  • Method Details

    • option

      public abstract String option()
      Gets the option name that caused this exception.
      Returns:
      The option name.