I have a method which throws subclasses of Exception. If I am performing the same catch functionality for each sub-class of Exception that\'s causght is it bad practice to just
If you can do the same functionality for any unexpected execptions (runtime execeptions, for example) thrown by your code, it is fine.
Otherwise, I recommend catching the sub-classes.
Consider what would happen if some part of your code threw a NullPointerException?
NullPointerException