You can throw a customised exception if you think the code will throw an exception. The control will directly be transferred to you Catch action. Remember to use throw inside of a Try action.
@@RPAFeed But how bot will come to know it is a validation error, In uipath we can assign business exception to throw activity for example to check length of phone number if length is less than 10 then the bot should raise business exception how can we do this in A360 ?