dimanche 7 avril 2019

How to find out how many catch blocks, I have in a method in a java class and what exception they catch

I want to find out how many catch blocks I have in a method in a java class and what exception they catch? In reflection, we have one method called getExceptionTypes which provides list of exceptions a method throws. Do we have anything similar for catch blocks? Can someone provide me some examples if any?





Aucun commentaire:

Enregistrer un commentaire