Skip to content

Instantly share code, notes, and snippets.

@follesoe
Created December 24, 2010 14:29
Show Gist options
  • Save follesoe/754279 to your computer and use it in GitHub Desktop.
Save follesoe/754279 to your computer and use it in GitHub Desktop.
What you need to know about re-throwing exceptions
public static int DoSomething()
{
try
{
return BusinessLayer.DoSomething();
}
catch (Exception ex)
{
Log.LogException(ex, "Something crashed...", EventLogEntryType.Error);
throw ex;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment