Skip to content

Instantly share code, notes, and snippets.

@einarwh
Created June 27, 2014 21:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save einarwh/c737144745ff7e20a88b to your computer and use it in GitHub Desktop.
Save einarwh/c737144745ff7e20a88b to your computer and use it in GitHub Desktop.
Quux SafeMethod3() {
try {
return Call(() => Method3(),
ex => // Handle SomeException,
ex => // Handle SomeOtherException,
ex => // Handle YetAnotherException,
ex => // Handle Exception
);
}
catch (IdiosyncraticException ex) {
// Do something.
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment