Answered by:
First Chance Exception - Skip User Defined Exceptions

Question
-
Hi
I have an User Defined Exception, inherited from ApplicationException. I would like to skip this particular exception and capture rest of the exceptions while debugging exception ( First Chance Exceptions).
Is it possible, Thanks in Advance
Anu
Anu Viswan : www.AnuViswan.blogspot.com
Saturday, November 2, 2013 5:50 AM
Answers
-
Add an exception hadler around the instruction that is giving the error
try { //add instruction giving an error here } catch (Exception e) { }
jdweng
- Marked as answer by Caillen Tuesday, November 12, 2013 7:41 AM
Saturday, November 2, 2013 6:59 AM -
Your question isn't totally clear, but I suspect you mean something like this:
try { // instruction giving an error here } catch (FirstChanceException e) { // code for handling First Chance Exceptions } catch (UserDefinedException e) { // code for handling UseDefined Exceptions } catch (Exception e) { // code for handling rest of exceptions }
~~Bonnie Berent DeWitt [C# MVP]
- Marked as answer by Caillen Tuesday, November 12, 2013 7:41 AM
Sunday, November 3, 2013 5:29 PM
All replies
-
Add an exception hadler around the instruction that is giving the error
try { //add instruction giving an error here } catch (Exception e) { }
jdweng
- Marked as answer by Caillen Tuesday, November 12, 2013 7:41 AM
Saturday, November 2, 2013 6:59 AM -
Your question isn't totally clear, but I suspect you mean something like this:
try { // instruction giving an error here } catch (FirstChanceException e) { // code for handling First Chance Exceptions } catch (UserDefinedException e) { // code for handling UseDefined Exceptions } catch (Exception e) { // code for handling rest of exceptions }
~~Bonnie Berent DeWitt [C# MVP]
- Marked as answer by Caillen Tuesday, November 12, 2013 7:41 AM
Sunday, November 3, 2013 5:29 PM