Throw and Rethrow

rethrow can only be put into the catch block. sometimes you may need to do some actions in the catch block before propagating the error further

e.g.

Try
// processing steps
Catch
// perform certain actions e.g. update log / click on error popup etc…
// rethrow to REFramework to handle exception (send email / take screenshot / update queue item ) etc…

2 Likes