Module com.github.rvesse.airline
Class ParseOptionOutOfRangeException
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.ParseOptionOutOfRangeException
- All Implemented Interfaces:
Serializable
Error that indicates that an options value was outside of an acceptable range
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionParseOptionOutOfRangeException
(String optionTitle, Object value, Object min, boolean minInclusive, Object max, boolean maxInclusive) Creates a new out of range exception -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
illegalValue
-
min
-
max
-
minInclusive
private final boolean minInclusive -
maxInclusive
private final boolean maxInclusive
-
-
Constructor Details
-
ParseOptionOutOfRangeException
public ParseOptionOutOfRangeException(String optionTitle, Object value, Object min, boolean minInclusive, Object max, boolean maxInclusive) Creates a new out of range exception- Parameters:
optionTitle
- Option titlevalue
- The value which is out of rangemin
- Minimum value which may be null for no minimumminInclusive
- Whether the minimum value is inclusivemax
- Maximum value which may be null for no maximummaxInclusive
- Whether the maximum value is inclusive
-
-
Method Details
-
getIllegalValue
-
getMinimumValue
-
getMaximumValue
-
isMinimumInclusive
public boolean isMinimumInclusive() -
isMaximumInclusive
public boolean isMaximumInclusive()
-