What is Exception Handling in UiPath?

 

 Exception Handling

Exception Handling mainly handling errors with respect to various activities in UiPath. The Error Handling activity has four options.

1.    Rethrow

2.    Terminate Workflow

3.    Throw

4.    Try-Catch

_____________

Rethrow

Throws an exception previously caught in an exception handling block.

Terminate Workflow

It is used to terminate the workflow if errors occur.

Throw

Throw an Exception.

Try-Catch

Try-Catch activity is used when we want to test something and handling the exception accordingly. So, whatever we want to test put in under try section, and then if any error occurs, then it can be handled using the catch section. Apart from the try-catch section, we also have “Finally” section which is used to mention those activity which must performed after the try and catch are executed.

_____________

Type of Error

The types of errors are divided into application exceptions and business exceptions.

Application Exception

An application exception is an error caused by a technical problem, such as a system or network problem.

Some examples of application exceptions in UiPath are

  • Selector not found and cannot be clicked
  • The specified file cannot be found.
  • Converted a string variable to numeric type.
  • A variable of data table type specified a matrix that does not exist.

Business Exception

A business exception refers to the fact that the data used in an automated process is incomplete from a business perspective.

Some example of Business exceptions in UiPath are

  • Data where the product price exceeds the limit.
  • Data with incorrect product codes.
  • Product data that has been purchased by a department that does not have the authority to make the decision.

Comments

Popular posts from this blog

UiPath Code Review Checklist – To Perform Effective RPA Code Reviews

What is Debugging in UiPath?

What is Robotic Enterprise Framework (RE Framework) Architecture?