Module com.github.rvesse.airline
Class ParseArgumentsIllegalValueException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.github.rvesse.airline.parser.errors.ParseException
-
- com.github.rvesse.airline.parser.errors.ParseRestrictionViolatedException
-
- com.github.rvesse.airline.parser.errors.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
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Set<java.lang.Object>
allowedValues
private java.lang.Object
illegalValue
private java.lang.String
optionTitle
private static long
serialVersionUID
-
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 valuesjava.lang.Object
getIllegalValue()
Gets the illegal valuejava.lang.String
getOptionTitle()
Gets the option title
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
optionTitle
private final java.lang.String optionTitle
-
illegalValue
private final java.lang.Object illegalValue
-
allowedValues
private final 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
-
-