public class NumberIsTooSmallException extends MathIllegalNumberException
Modifier and Type | Field and Description |
---|---|
private boolean |
boundIsAllowed
Whether the maximum is included in the allowed range.
|
private Number |
min
Higher bound.
|
private static long |
serialVersionUID
Serializable version Id.
|
Constructor and Description |
---|
NumberIsTooSmallException(Localizable specific,
Number wrong,
Number min,
boolean boundIsAllowed)
Construct the exception with a specific context.
|
NumberIsTooSmallException(Number wrong,
Number min,
boolean boundIsAllowed)
Construct the exception.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getBoundIsAllowed() |
Number |
getMin() |
getArgument
getArguments, getGeneralPattern, getLocalizedMessage, getMessage, getMessage, getSpecificPattern
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
private static final long serialVersionUID
private final Number min
private final boolean boundIsAllowed
public NumberIsTooSmallException(Number wrong, Number min, boolean boundIsAllowed)
wrong
- Value that is smaller than the minimum.min
- minimum.boundIsAllowed
- Whether min
is included in the allowed range.public NumberIsTooSmallException(Localizable specific, Number wrong, Number min, boolean boundIsAllowed)
specific
- Specific contexte pattern .wrong
- Value that is smaller than the minimum.min
- minimum.boundIsAllowed
- Whether min
is included in the allowed range.public boolean getBoundIsAllowed()
true
if the minimum is included in the allowed range.public Number getMin()
Copyright (c) 2003-2014 Apache Software Foundation