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

Content added Content deleted
Line 1,873: Line 1,873:
</pre>
</pre>


=={{header|Langur}}==
=={{header|langur}}==
Exceptions in langur are hashes that are guaranteed to always contain certain fields.
Exceptions in langur are hashes that are guaranteed to always contain certain fields.


There is no explicit try block.
There is no explicit try block.


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