public class NumberIsTooLargeException extends MathIllegalNumberException
Modifier and Type | Field and Description |
---|---|
private boolean |
boundIsAllowed
Whether the maximum is included in the allowed range.
|
private java.lang.Number |
max
Higher bound.
|
private static long |
serialVersionUID
Serializable version Id.
|
INTEGER_ZERO
Constructor and Description |
---|
NumberIsTooLargeException(Localizable specific,
java.lang.Number wrong,
java.lang.Number max,
boolean boundIsAllowed)
Construct the exception with a specific context.
|
NumberIsTooLargeException(java.lang.Number wrong,
java.lang.Number max,
boolean boundIsAllowed)
Construct the exception.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getBoundIsAllowed() |
java.lang.Number |
getMax() |
getArgument
getContext, getLocalizedMessage, getMessage
private static final long serialVersionUID
private final java.lang.Number max
private final boolean boundIsAllowed
public NumberIsTooLargeException(java.lang.Number wrong, java.lang.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, java.lang.Number wrong, java.lang.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.Copyright (c) 2003-2014 Apache Software Foundation