|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException net.sf.qualitycheck.exception.IllegalNumberRangeException
public class IllegalNumberRangeException
Thrown to indicate that a method has been passed with a number which is not in the range of the given datatype..
Field Summary | |
---|---|
protected static String |
DEFAULT_MESSAGE
Default message to indicate that the a given arguments are not in the valid range of the datatype. |
protected static String |
MESSAGE_WITH_VALUES
Message to indicate that the the given arguments must be in the valid range for the datatype. |
Constructor Summary | |
---|---|
IllegalNumberRangeException()
Constructs an IllegalNumberRangeException with the default message
DEFAULT_MESSAGE . |
|
IllegalNumberRangeException(String value,
BigDecimal min,
BigDecimal max)
Constructs an IllegalNumberRangeException with the message MESSAGE_WITH_VALUES
including the given values of the arguments. |
|
IllegalNumberRangeException(String value,
BigDecimal min,
BigDecimal max,
Throwable cause)
Constructs a new exception with the message MESSAGE_WITH_VALUES including the given
values of the arguments. |
|
IllegalNumberRangeException(String value,
BigInteger min,
BigInteger max)
Constructs an IllegalNumberRangeException with the message MESSAGE_WITH_VALUES
including the given values of the arguments. |
|
IllegalNumberRangeException(String value,
BigInteger min,
BigInteger max,
Throwable cause)
Constructs a new exception with the message MESSAGE_WITH_VALUES including the given
values of the arguments. |
|
IllegalNumberRangeException(Throwable cause)
Constructs a new exception with the default message DEFAULT_MESSAGE . |
Method Summary |
---|
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final String DEFAULT_MESSAGE
protected static final String MESSAGE_WITH_VALUES
Constructor Detail |
---|
public IllegalNumberRangeException()
IllegalNumberRangeException
with the default message
DEFAULT_MESSAGE
.
public IllegalNumberRangeException(String value, BigDecimal min, BigDecimal max)
IllegalNumberRangeException
with the message MESSAGE_WITH_VALUES
including the given values of the arguments.
value
- the value which is not in the range as String
min
- the min value of the rangemax
- the max value of the rangepublic IllegalNumberRangeException(String value, BigInteger min, BigInteger max)
IllegalNumberRangeException
with the message MESSAGE_WITH_VALUES
including the given values of the arguments.
value
- the value which is not in the range as String
min
- the min value of the rangemax
- the max value of the rangepublic IllegalNumberRangeException(String value, BigInteger min, BigInteger max, @Nullable Throwable cause)
MESSAGE_WITH_VALUES
including the given
values of the arguments.
value
- the value which is not in the range as String
min
- the min value of the rangemax
- the max value of the rangecause
- the cause (which is saved for later retrieval by the Throwable.getCause()
method). (A
null
value is permitted, and indicates that the cause is nonexistent or unknown.)public IllegalNumberRangeException(String value, BigDecimal min, BigDecimal max, @Nullable Throwable cause)
MESSAGE_WITH_VALUES
including the given
values of the arguments.
value
- the value which is not in the range as String
min
- the min value of the rangemax
- the max value of the rangecause
- the cause (which is saved for later retrieval by the Throwable.getCause()
method). (A
null
value is permitted, and indicates that the cause is nonexistent or unknown.)public IllegalNumberRangeException(@Nullable Throwable cause)
DEFAULT_MESSAGE
.
cause
- the cause (which is saved for later retrieval by the Throwable.getCause()
method). (A
null
value is permitted, and indicates that the cause is nonexistent or unknown.)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |