Skip to content

Instantly share code, notes, and snippets.

@JunTaoLuo
Created October 2, 2015 00:23
Show Gist options
  • Save JunTaoLuo/8acfc2f4ca31dbc89d7c to your computer and use it in GitHub Desktop.
Save JunTaoLuo/8acfc2f4ca31dbc89d7c to your computer and use it in GitHub Desktop.
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