Exceptions/Catch an exception thrown in a nested call: Difference between revisions
Content added Content deleted
Langurmonkey (talk | contribs) |
|||
Line 1,925: | Line 1,925: | ||
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. 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. |
|||
There is no explicit try block. |
|||
Prior to 0.7, you would use .err instead of _err for an implicit exception variable. |
Prior to 0.7, you would use .err instead of _err for an implicit exception variable. |