Exceptions: Difference between revisions
Content added Content deleted
(add Zig example) |
Langurmonkey (talk | contribs) |
||
Line 1,560:
=={{header|langur}}==
Exceptions in langur are hashes guaranteed to contain certain fields, even if they're empty.▼
A catch causes all the statements preceding it within a block to be the implicit try block.
▲Exceptions in langur are hashes guaranteed to contain certain fields, even if they're empty.
<lang langur># do something
Line 1,579:
}</lang>
An else section on a catch is optional. As of 0.7, you can also use else if on a catch
=== shortened catch ===
|