Exceptions: Difference between revisions

Content deleted Content added
added J
Rahul (talk | contribs)
Line 401: Line 401:
val x = f() handle MyException => 22;
val x = f() handle MyException => 22;
val y = f() handle MyDataException x => x;
val y = f() handle MyDataException x => x;

=={{header|V}}==

throwing exceptions
[myproc
['new error' 1 2 3] throw
'should not come here' puts
].

catching them

[myproc] [puts] catch
=[new error 1 2 3]