Exceptions: Difference between revisions

Content added Content deleted
Line 1,553: Line 1,553:


=== shortened catch ===
=== shortened catch ===
A catch can be shortened by using a single expression that does not start with a variable name. This uses the implicit _err exception variable. Prior to 0.7.0, the implicit exception variable was .err.
A catch can be shortened by using a single expression that does not start with a variable name. This uses the implicit _err exception variable. Prior to 0.7, the implicit exception variable was .err.


A shortened catch does not allow an else section (action for no exception).
A shortened catch does not allow an else section (action for no exception).