positiveIntOrThrow

@SinceKotools(project = Project.Types, version = "3.2", stability = StabilityLevel.Alpha)
fun positiveIntOrThrow(value: Int): PositiveInt

Returns the value as a PositiveInt, or throws an IllegalArgumentException if the value is strictly negative.