Posts by Ana • 3 points
1 post
-
0
votes1
answer63
viewsQ: How to capture several exceptions with C#switch?
I want to capture some exceptions using try-catch and switch. I made a few attempts, but it didn’t work. For example: try { //tarefas... } catch (Exception ex) { switch () { case PrimeiraExceção;…