public class NumberIsTooLargeException extends MathIllegalNumberException
| Modifier and Type | Field and Description |
|---|---|
private boolean |
boundIsAllowed
Whether the maximum is included in the allowed range.
|
private Number |
max
Higher bound.
|
private static long |
serialVersionUID
Serializable version Id.
|
| 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() |
getArgumentgetArguments, getGeneralPattern, getLocalizedMessage, getMessage, getMessage, getSpecificPatternaddSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringprivate static final long serialVersionUID
private final Number max
private final boolean boundIsAllowed
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 contexte 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 (c) 2003-2014 Apache Software Foundation