Exception handling

Your bot often has to deal with unexpected behavior when running in a production environment. Unexpected behavior can cause the bot to raise errors called exceptions. In this section, you will learn how to handle exceptions in IBM Robotic Process Automation.

In a bot's flow control, an exception is an unexpected event not handled by the programming logic. This unexpected event disrupts the normal flow of the runtime. If the bot does not handle the exception, the bot stops with an error.

In IBM Robotic Process Automation, every exception during a bot's runtime has the Runtime Exception type. You can handle Runtime Exceptions in your IBM RPA script with the Handle Error (onError) command.