Created
July 15, 2015 21:19
Star
You must be signed in to star a gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try | |
{ | |
throw new Exception("C#"); | |
} | |
catch (Exception ex) if (ex.Message == "C#") | |
{ | |
// this one will execute. | |
} | |
catch (Exception ex) if (ex.Message == "VB.NET") | |
{ | |
// this one will not execute | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment