cancel
Showing results for 
Search instead for 
Did you mean: 

Make code stage throw exception

Does anyone know how to make my code stage (MAPIEx in this case, but it matters not) throw an exception which can be caught by a recovery stage when you put the code stage in a block? I have been unable to catch any type of exceptions as they occur and the code stage either just continues or crashes my blue prism application.
1 REPLY 1

Hi Sebastien, you should use in your code stage try/catch approach (which is best practice anyway) and if there is an exception caught in the catch part you can set up some variables to contain error message which then can be passed as a text in throw exception after the code stage. Zdenek