https://kotlinlang.org logo
c

Czar

09/01/2017, 10:54 AM
Kotlin has
check
,
checkNotNull
stdlib methods, which are nice most of the time, but in my current use case I have to do same checks but throw custom exception instead of
IllegalStateException
is there a way to gracefully do that?