Created
October 2, 2015 00:23
-
-
Save JunTaoLuo/8acfc2f4ca31dbc89d7c to your computer and use it in GitHub Desktop.
This file contains 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
catch (Exception ex) | |
{ | |
if (ex is ICompilationException) | |
{ | |
throw SuppressStackTrace(ex); | |
} | |
if (ex.InnerException is ICompilationException) | |
{ | |
throw SuppressStackTrace(ex.InnerException); | |
} | |
if (ex is FileLoadException || ex is FileNotFoundException) | |
{ | |
ThrowEntryPointNotfoundException( | |
host, | |
applicationName, | |
ex.InnerException); | |
} | |
throw; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment