org.apache.commons.math3.exception
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() |
getArgument
getContext, getLocalizedMessage, getMessage
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
private 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 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 (c) 2003-2013 Apache Software Foundation