public class NumberIsTooLargeException extends MathIllegalNumberException
INTEGER_ZERO
Constructor and Description |
---|
NumberIsTooLargeException(Localizable specific,
Number wrong,
Number max,
boolean boundIsAllowed)
Construct the exception with a specific context.
|
NumberIsTooLargeException(Number wrong,
Number max,
boolean boundIsAllowed)
Construct the exception.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getBoundIsAllowed() |
Number |
getMax() |
getArgument
getContext, getLocalizedMessage, getMessage
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public NumberIsTooLargeException(Number wrong, Number max, boolean boundIsAllowed)
wrong
- Value that is larger than the maximum.max
- Maximum.boundIsAllowed
- if true the maximum is included in the allowed range.public NumberIsTooLargeException(Localizable specific, Number wrong, Number max, boolean boundIsAllowed)
specific
- Specific context pattern.wrong
- Value that is larger than the maximum.max
- Maximum.boundIsAllowed
- if true the maximum is included in the allowed range.public boolean getBoundIsAllowed()
true
if the maximum is included in the allowed range.public Number getMax()
Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.