I have 2 methods with one method 1 throwing exception and method 2 that is catching the exception thrown by method 1. So my exception types are 2 empty classes for testing purposes. Somehow, nothing is being printed out even though i called the method2 in the int main(). Supposedly, method2 should catch exception of class H() type due to my condition, but no output message.
Can you post a minimal compilable example of this? Like I say I tried the pasted portion in a quickie program and it worked just fine, so the problem must be elsewhere.