method
checkNotNegative

void checkNotNegative(
int value,
[String name,
String message]
)

Check that an integer value isn't negative.

Throws if the value is negative.