Class ParseOptionIllegalValueException

All Implemented Interfaces:
Serializable

public class ParseOptionIllegalValueException extends ParseRestrictionViolatedException
Exception thrown when the value for an option is not in a specific set of allowed values
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • optionName

      private final String optionName
    • optionTitle

      private final String optionTitle
    • illegalValue

      private final Object illegalValue
    • allowedValues

      private final Set<Object> allowedValues
  • Constructor Details

    • ParseOptionIllegalValueException

      public ParseOptionIllegalValueException(String optionName, String optionTitle, Object value, Set<Object> allowedValues)
  • Method Details

    • getOptionName

      public String getOptionName()
      Gets the option name i.e. the flag used to specify this option
      Returns:
      Option name
    • getOptionTitle

      public String getOptionTitle()
      Gets the option value title
      Returns:
      Option title
    • getIllegalValue

      public Object getIllegalValue()
      Gets the illegal value
      Returns:
      Illegal value
    • getAllowedValues

      public Set<Object> getAllowedValues()
      Gets the set of allowed values
      Returns:
      Allowed values