public static int checkArgumentPositive(final int value, final String errorMessage) {
        if (value <= 0) {
            throw new IllegalArgumentException(errorMessage);
        }

        return value;
    }
Ensures that that the argument numeric value is positive.

@param value        a numeric int value
@param errorMessage the exception message to use if the check fails
@return the validated numeric value
@throws IllegalArgumentException if {@code value} was not positive
android/android_framework/base/src/main/java/util/PreconditionUtils.java