Exceptions/Catch an exception thrown in a nested call: Difference between revisions

Content added Content deleted
imported>Arakov
Line 2,070: Line 2,070:


There is no explicit try block. A catch implicitly wraps the instructions preceding it within a block into a try block.
There is no explicit try block. A catch implicitly wraps the instructions preceding it within a block into a try block.

Prior to 0.7, you would use .err instead of _err for an implicit exception variable.


<syntaxhighlight lang="langur">val .U0 = h{"msg": "U0"}
<syntaxhighlight lang="langur">val .U0 = h{"msg": "U0"}