Posted on: 9/20/2012 12:11:49 AM | Views : 215

Hi,
I got multiple catch exception in my code. My problem is, if i wanna show only correct catch error message. How should i go about this.
For now, when system found error in my code, it will straight way prompt 3 catch error message. how to show only the correct catch error message. Someone guide me pls.
Thanks.
catch (Exception) { // no test result found, prompt error MessageBox.Show("Failed to retrieve last test result.", "Test Access", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } } catch (Exception) { // current route cannot be found MessageBox.Show("Failed to get current route!", "Test Access", MessageBoxButtons.OK, MessageBox ...

Go to the complete details ...