Exceptions/Catch an exception thrown in a nested call: Difference between revisions
Exceptions/Catch an exception thrown in a nested call (view source)
Revision as of 02:26, 12 March 2020
, 4 years ago→{{header|langur}}
Langurmonkey (talk | contribs) |
|||
Line 1,925:
Exceptions in langur are hashes that are guaranteed to always contain certain fields.
There is no explicit try block. That is, a catch implicitly wraps the instructions preceding it within a block into a try block. You could emulate an explicit try block by wrapping code into a block with curly braces, including the catch inside the braces.
Prior to 0.7, you would use .err instead of _err for an implicit exception variable.
|