Created
June 27, 2014 21:18
-
-
Save einarwh/ac9e29034a8f0f923403 to your computer and use it in GitHub Desktop.
The simplest possible scenario for catching an exception in C#.
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 { | |
// Interesting code. | |
} | |
catch (SomeException ex) { | |
// Dull exception handling code. | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment