Class OptionContainsInvalidChar

All Implemented Interfaces:
Serializable

public class OptionContainsInvalidChar extends InvalidOption
Is the exception which indicates that an invalid character is found in an option.
See Also:
  • Field Details

    • option

      public final String option
      The option name that caused this exception.
  • Constructor Details

    • OptionContainsInvalidChar

      public OptionContainsInvalidChar(String option)
      Constructs an instance of this class.
      Parameters:
      option - The option name that caused this exception.
  • Method Details

    • option

      public String option()
      Gets the option name that caused this exception.
      Specified by:
      option in class InvalidOption
      Returns:
      The option name.
    • getMessage

      public String getMessage()
      Returns a string which represents the content of this exception.
      Overrides:
      getMessage in class Throwable
      Returns:
      The exception message.