Class ParseArgumentsIllegalValueException

  • All Implemented Interfaces:
    java.io.Serializable

    public class ParseArgumentsIllegalValueException
    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
      ParseArgumentsIllegalValueException​(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 getOptionTitle()
      Gets the option 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

      • 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

      • ParseArgumentsIllegalValueException

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

      • getOptionTitle

        public java.lang.String getOptionTitle()
        Gets the option 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