>>> throw Exception("hi there") java.lang.Exception: hi there at Line1.(Unknown Source) >>> fun foo() = 2 >>> foo() 2 >>> fun bar() = throw AssertionError() >>> bar() java.lang.AssertionError at Line4.bar(Unknown Source) at Line5.(Unknown Source)