Create custom exception for lateinit

This commit is contained in:
Yan Zhulanow
2015-09-04 17:13:55 +03:00
parent fc3bf3cca4
commit 4ca127ecb3
8 changed files with 38 additions and 7 deletions
@@ -8,7 +8,7 @@ class A : Intf {
fun getMyStr(): String {
try {
val a = str
} catch (e: NullPointerException) {
} catch (e: RuntimeException) {
return "OK"
}
return "FAIL"