checkLimit

protected fun checkLimit(limit: Int)

Verifies that limit is non-negative.

Throws

if the limit is negative.