Skip to main content

End Try

Sophie avatar
Written by Sophie
Updated over a week ago

Definition and Usage

Marks the end of a try-catch block for error handling. This command is used to define the boundary where the try block ends in a try-catch error handling structure. It must be paired with a corresponding "Try" command to create a complete error handling block.


Parameter Values

Input parameters

This action does not require any input parameters.

Variables produced

This action doesn't produce any variables.


Notes

  • The "End Try" command must always be paired with a preceding "Try" command to create a valid try-catch block.

  • Any code between the "Try" and "End Try" commands will be monitored for exceptions.

  • If an exception occurs within the try block, execution will jump to the corresponding "Catch" block.

  • For proper error handling, make sure to include a "Catch" block after the "End Try" command.

  • Without a properly structured try-catch-finally block, exceptions may cause your automation to terminate unexpectedly.

  • The try-catch block structure helps create more robust automations by gracefully handling potential errors.

Did this answer your question?