checkSafeInteger method
Checks if n
is a safe int
. Throws StateError if is not a safe int
.
Implementation
void checkSafeInteger(int n) {
if (!isSafeInteger(n)) {
throw StateError(_sageErrorMessage(n));
}
}
Checks if n
is a safe int
. Throws StateError if is not a safe int
.
void checkSafeInteger(int n) {
if (!isSafeInteger(n)) {
throw StateError(_sageErrorMessage(n));
}
}