Class ParseOptionIllegalValueException

  • All Implemented Interfaces:
    java.io.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:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ParseOptionIllegalValueException​(java.lang.String optionName, java.lang.String optionTitle, java.lang.Object value, java.util.Set<java.lang.Object> allowedValues)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Set<java.lang.Object> getAllowedValues()
      Gets the set of allowed values
      java.lang.Object getIllegalValue()
      Gets the illegal value
      java.lang.String getOptionName()
      Gets the option name i.e.
      java.lang.String getOptionTitle()
      Gets the option value title
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • optionName

        private final java.lang.String optionName
      • optionTitle

        private final java.lang.String optionTitle
      • illegalValue

        private final java.lang.Object illegalValue
      • allowedValues

        private final java.util.Set<java.lang.Object> allowedValues
    • Constructor Detail

      • ParseOptionIllegalValueException

        public ParseOptionIllegalValueException​(java.lang.String optionName,
                                                java.lang.String optionTitle,
                                                java.lang.Object value,
                                                java.util.Set<java.lang.Object> allowedValues)
    • Method Detail

      • getOptionName

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

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

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

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