Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
2
Task/Exceptions/Oz/exceptions-1.oz
Normal file
2
Task/Exceptions/Oz/exceptions-1.oz
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
raise sillyError end
|
||||
raise slightlyLessSilly(data:42 reason:outOfMemory) end
|
||||
5
Task/Exceptions/Oz/exceptions-2.oz
Normal file
5
Task/Exceptions/Oz/exceptions-2.oz
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
try
|
||||
raise someError(debug:unit) end
|
||||
catch someError(debug:d(stack:ST ...)...) then
|
||||
{Inspect ST}
|
||||
end
|
||||
11
Task/Exceptions/Oz/exceptions-3.oz
Normal file
11
Task/Exceptions/Oz/exceptions-3.oz
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
try
|
||||
{Foo}
|
||||
catch sillyError then
|
||||
{Bar}
|
||||
[] slightlyLessSilly(data:D ...) then
|
||||
{Quux D}
|
||||
[] _ then %% an unknown type of exception was thrown
|
||||
{Baz}
|
||||
finally
|
||||
{Fin}
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue