Class OptionNameIsDuplicated

All Implemented Interfaces:
Serializable

public class OptionNameIsDuplicated extends InvalidOption
Is the exception which indicates that there are duplicated opton names among the option configurations.
See Also:
  • Field Details

    • storeKey

      public final String storeKey
      The store key of the option configuration that caused this exception.
    • name

      public final String name
      The duplicated name of the option configuration.
  • Constructor Details

    • OptionNameIsDuplicated

      public OptionNameIsDuplicated(String storeKey, String name)
      Constructs an instance of this class.
      Parameters:
      storeKey - The first name of the option configuration.
      name - The first name of the option 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.