Skip to content

Instantly share code, notes, and snippets.

@einarwh
Created June 27, 2014 21:26
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/7a37be08748c6d785c79 to your computer and use it in GitHub Desktop.
Save einarwh/7a37be08748c6d785c79 to your computer and use it in GitHub Desktop.
Foo SafeMethod1(int x, string s) {
Call(() => Method1(x, s),
ex => // Handle SomeException,
ex => // Handle SomeOtherException,
ex => // Handle YetAnotherException,
ex => // Handle Exception
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment