Created
March 3, 2018 10:32
-
-
Save hecres/3aa1d2fc867125cf78b8e8be8e135877 to your computer and use it in GitHub Desktop.
ExceptionDispatchInfoによる例外の再スロー処理
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
| using System; | |
| using System.Runtime.ExceptionServices; | |
| public void Rethrow(Exception exception) | |
| { | |
| ExceptionDispatchInfo.Capture(exception).Throw(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment