Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
4
Task/Exceptions/Zkl/exceptions-1.zkl
Normal file
4
Task/Exceptions/Zkl/exceptions-1.zkl
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
try{ throw(Exception.BadDay) }
|
||||
catch { println(__exception," was thrown") }
|
||||
fallthrough { println("No exception was thrown") }
|
||||
println("OK");
|
||||
11
Task/Exceptions/Zkl/exceptions-2.zkl
Normal file
11
Task/Exceptions/Zkl/exceptions-2.zkl
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
fcn f(b){
|
||||
try{
|
||||
onExitBlock("Exit code".println);
|
||||
if (b) throw(Exception.BadDay)
|
||||
}
|
||||
catch{ println(__exception," was thrown") }
|
||||
fallthrough{ println("No exception was thrown") }
|
||||
println("OK");
|
||||
}
|
||||
f(False); println("--------");
|
||||
f(True);
|
||||
Loading…
Add table
Add a link
Reference in a new issue