User Tools

Site Tools


action:Try_or_Catch

**This is an old revision of the document!**

Try/Catch Action

The Try/Catch action (v10.0+) allows you to execute a sequence of actions and catch any failure. If any action in the Try sequence would abort the macro, the macro instead continues executing the Catch section, setting the Action Result, available in the %ActionResult% token or Action Result condition.

If the actions in the Try sequence execute to completion, the Catch sequence is not executed.

If an action in the Catch sequence aborts, the macro aborts as usual.

You can explicitly throw an error using the Throw action.

See Also

Actions

Tokens

Conditions

action/Try_or_Catch.1634025972.txt.gz · Last modified: 2021/10/12 04:06 by peternlewis