Skip to main content

TRY

Executes a set of steps in a try block, and if an error occurs, executes catch steps.

At a glance

  • Category Control
  • Version: 1.1.0
  • Applications: all
  • Scope: all

Config Options

NameDescriptionDefaultRequiredResolvedConstraintsConditional Rules
trySteps to execute in the try block.NonetruefalseNoneNone
catchSteps to execute if an error occurs in the try block.NonefalsefalseNoneNone

Examples

Try catch example

 - step: TRY
try:
- step: SET
value: "{{ undefinedVar }}"
catch:
- step: SET
errorHandled: true

See Also

General Resources: