I have this code:
private void btn1_Click(object sender, EventArgs e) { try { Thrower(); } catch { MessageBox.Show("exception caught"); } }
Which call calls this method:
private void Thrower() { throw new OverflowException(); }
Well, I'm not very experienced when it comes to handling exceptions, but I would have thought that this message box (โexception caughtโ) would be shown here. This is not true. Should it be? If not, what am I doing wrong? I misunderstood how this should work?
Thanks.
source share