Created
December 24, 2010 14:29
-
-
Save follesoe/754279 to your computer and use it in GitHub Desktop.
What you need to know about re-throwing exceptions
This file contains hidden or 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
| 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