Jump to content

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

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.
There is no explicit try block.
 
Prior to 0.7, you would use .err instead of _err for an implicit exception variable.
973

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.