public class NumberOutOfRangeException extends InvalidDataException
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
Constructor and Description |
---|
NumberOutOfRangeException()
Create a new
NumberOutOfRangeException object. |
NumberOutOfRangeException(String msg) |
NumberOutOfRangeException(String field,
double theValue,
double minOrMaxValue,
boolean tooBig)
Create a new
NumberOutOfRangeException object when the
parameter is less than a minimum or greater than a maximum value. |
NumberOutOfRangeException(String field,
double theValue,
double minValue,
double maxValue)
Create a new
NumberOutOfRangeException object when the
parameter is outside both a minimum and a maximum allowed value. |
NumberOutOfRangeException(String field,
long theValue,
long minOrMaxValue,
boolean tooBig)
Create a new
NumberOutOfRangeException object when the
parameter is less than a minimum or greater than a maximum value. |
NumberOutOfRangeException(String field,
long theValue,
long minValue,
long maxValue)
Create a new
NumberOutOfRangeException object when the
parameter is outside both a minimum and a maximum allowed value. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
private static final long serialVersionUID
public NumberOutOfRangeException()
NumberOutOfRangeException
object.public NumberOutOfRangeException(String msg)
public NumberOutOfRangeException(String field, long theValue, long minOrMaxValue, boolean tooBig)
NumberOutOfRangeException
object when the
parameter is less than a minimum or greater than a maximum value.field
- The name of the field or parameter that is invalidtheValue
- The value that is invalidminOrMaxValue
- The minimum or maximum allowed valuetooBig
- TRUE if the value is greater than the maximum allowed,
FALSE if it is less than the minumum allowedpublic NumberOutOfRangeException(String field, long theValue, long minValue, long maxValue)
NumberOutOfRangeException
object when the
parameter is outside both a minimum and a maximum allowed value.field
- The name of the field or parameter that is outside the rangetheValue
- The value that is outside the rangeminValue
- The minimum allowed value of the numbermaxValue
- The maximum allowed value of the numberpublic NumberOutOfRangeException(String field, double theValue, double minOrMaxValue, boolean tooBig)
NumberOutOfRangeException
object when the
parameter is less than a minimum or greater than a maximum value.field
- The name of the field or parameter that is invalidtheValue
- The value that is invalidminOrMaxValue
- The minimum or maximum allowed valuetooBig
- TRUE if the value is greater than the maximum allowed,
FALSE if it is less than the minumum allowedpublic NumberOutOfRangeException(String field, double theValue, double minValue, double maxValue)
NumberOutOfRangeException
object when the
parameter is outside both a minimum and a maximum allowed value.field
- The name of the field or parameter that is outside the rangetheValue
- The value that is outside the rangeminValue
- The minimum allowed value of the numbermaxValue
- The maximum allowed value of the number