Class OptionIsNotArray

All Implemented Interfaces:
Serializable

public class OptionIsNotArray extends InvalidOption
Is the exception which indicates that the option is supposed to take one argument in the configuration, but multiple arguments are specified.
See Also:
  • Field Details

    • option

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

      public final String storeKey
      The store key of the specified option in the configuration.
  • Constructor Details

    • OptionIsNotArray

      public OptionIsNotArray(String option, String storeKey)
      Constructs an instance of this class.
      Parameters:
      option - The option name that caused this exception.
      storeKey - The store key of the specified option in the configuration.
  • 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.