public class NumberIsTooSmallException extends MathIllegalNumberException
INTEGER_ZERO
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
getContext, getLocalizedMessage, getMessage
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
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 context 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 © 2003–2016 The Apache Software Foundation. All rights reserved.