validateLimit

internal fun validateLimit(limit: Int?)

Validates the provided limit to ensure it is either null or a positive integer. Throws an IllegalArgumentException if the limit is negative or zero.

Parameters

limit

The maximum allowed number of rows. Use null for unlimited rows.