Adeiza Yusuf wrote:I think this is more theoretical than practical. its ok if my question can not be answered. thank you for your contributions.
Sounds like a fairly common scenario to me. You want some code to run whether an exception is thrown or not, but you want the calling method to handle the exception.
Write some simple code to get this to happen and if you don't understand what happens when you run it, post the code, along with how what happened differs from what you were expecting and someone will explain it for you.