Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
They won’t work here in any way, because the try block is empty.
But if there were, then:
If CustomException was thrown, the exception would be suppressed.
If any of the others fell out, it would be forwarded further without changes.
Execution would not reach these lines. What by the way any IDE talks about
throw ex;
throw new MyEx(ex);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question