To reset and start again BOT if exception occured

Hi,

I am triggering my Uipath BOT through cmd to run in background. I need to capture the timeout error when screen is lock. I need add functionality in BOT that it has to retry 3 times if exception occured and the logged Timeout error.

I am have added retry logic but when I run bot through cmd in lock screen it is not capturing timeout error. without retry it’s capturing.

Please help me to find solution.

Thank You,

Sayali