https://kotlinlang.org logo
#announcements
Title
# announcements
a

akbarsha03

06/18/2017, 7:05 PM
There is no difference between
check
and
require
in kotlin
Preconditions.kt
😕
d

diesieben07

06/18/2017, 7:07 PM
akbarsha03: Yes there is.
check
throws
IllegalStateException
,
require
throws
IllegalArgumentException
.
👍 1
a

akbarsha03

06/18/2017, 7:08 PM
Good catch! My mind just skipped it as it was starting with
IllegalSomeException
Indeed there is a lot of discrepancies hidden inside… uffff