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:
java.io.Serializable
public class ParseOptionOutOfRangeException extends ParseRestrictionViolatedException
Error that indicates that an options value was outside of an acceptable range- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Object
illegalValue
private java.lang.Object
max
private boolean
maxInclusive
private java.lang.Object
min
private boolean
minInclusive
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description ParseOptionOutOfRangeException(java.lang.String optionTitle, java.lang.Object value, java.lang.Object min, boolean minInclusive, java.lang.Object max, boolean maxInclusive)
Creates a new out of range exception
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getIllegalValue()
java.lang.Object
getMaximumValue()
java.lang.Object
getMinimumValue()
boolean
isMaximumInclusive()
boolean
isMinimumInclusive()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
illegalValue
private final java.lang.Object illegalValue
-
min
private final java.lang.Object min
-
max
private final java.lang.Object max
-
minInclusive
private final boolean minInclusive
-
maxInclusive
private final boolean maxInclusive
-
-
Constructor Detail
-
ParseOptionOutOfRangeException
public ParseOptionOutOfRangeException(java.lang.String optionTitle, java.lang.Object value, java.lang.Object min, boolean minInclusive, java.lang.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
-
-