net.corda.core / kotlin.Int / checkedAdd

checkedAdd

infix fun Int.checkedAdd(b: Int): Int

Like the + operator but throws an exception in case of integer overflow.