Error Handling
When we're doing some processes manually, we can usually detect an error in it ourselves.
However, what happens when the error occurs in the robotically automated process? Are robots capable of handling the situation?
To help robots out, we developed the Exception mode section for every process and its specific requirements. In other words, instead of having a few generic exceptions, Exception Handling is a part of the process. It is custom-made by developers, based on the process's needs, and executed only if an error occurs.
In that case, Exception Handling exits the process immediately. Then, we send an email notification to the responsible person, log the error, and close all the applications used in the process.
Those actions are needed for robots to "clean after themselves" and leave the robotic software in a consistent situation. That way, there will be no leftovers from the previous execution when the new process starts.
In each Exception Handling section, besides the variables used in the process, you will have specific generic variables with values of those exact errors, such as:
- ErrorTimeStamp - Time when the error occurred.
- ProcessName - The name of the process.
- StepNameWhereTheErrorHappened - The step name where the error appears. You can name each step differently, so you will know where exactly in the process is the error located.
- ApplicationScreenshot - Screenshot of the window when the error appeared.
- RobotName - Name of the robot that executed that process.
- ExceptionMessage - Exception message sent when the error in the process occurred.
- CustomErrorMessage - Message you can define for each step differently.
The Exception Handling section can have multiple flows, depending on the error type, due to "StepNameWhereTheErrorHappened" and "CustomErrorMessage" variables.
With them, you can predict some errors in advance and create exceptions for them.
Also, you can use the same Exception Handling variable for more than one process. For that, you have to create an external Function for handling errors and execute it in the exception-handling sector.
Create Exception
For each process, you can create separate Exception handling. At the top of every process editor, you will see several options to choose from. One of the options is "Error mode".
If you select it, the system will automatically direct you to the exception handling section for further processing.
Here you can add steps and functions just like in normal mode.