RosettaCodeData/Task/Exceptions/Zkl/exceptions-1.zkl

5 lines
143 B
Text
Raw Permalink Normal View History

2017-09-23 10:01:46 +02:00
try{ throw(Exception.BadDay) }
catch { println(__exception," was thrown") }
fallthrough { println("No exception was thrown") }
println("OK");