Catch
returns the value argument of the first
Throw(value)
generated in the evaluation ofexpr
.
returns value from the first
Throw(value, tag)
for whichform
matchestag
.
returns
f(value, tag)
.
Examples
Exit to the enclosing Catch
as soon as Throw
is evaluated:
Define a function that can “throw an exception”:
The result of Catch
is just what is thrown by Throw
:
Implementation status
- ✅ - full supported