Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
The simplest possible scenario for catching an exception in C#.
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