Make code stage throw exception
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
04-05-17 03:44 PM
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-05-17 02:06 AM
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
