checkSafeInteger method

void checkSafeInteger(
  1. int n
)

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));
  }
}