Up till now i have used try catch finally as exception handling mechanism but i want to make a generic finally block that should get perform some necessary action.
As in my scenario i have to perform same action after catching any A,B,C kind of exception.
The thing is that i don't want to declare finally block after each try catch block. Its very tedious procedure for me as i have almost 50 60 classes and many of them are using frequent try catch blocks.
so i am asking for an easier way to perform the same thing .
have anyone find shortcut way for this ? My multiple thanks in advance.