validateAtMost
fun validateAtMost(times: Int, atMostCall: (Int) -> String, atLeastCall: (Int) -> String, exactlyCall: (Int) -> String)(source)
Validates that times is not 1
; throws an IllegalArgumentException otherwise, pointing the user to use the given exactlyCall instead of the given atMostCall.
Throws
in case times is 1