Try-Catch not working

Please find the screenshot of the error message thrown!

Thanks,
Ashok