Skip to content

Instantly share code, notes, and snippets.

@IntegerMan
Created November 7, 2022 03:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IntegerMan/bada84605288ae765ab5ab1ce57fbcbb to your computer and use it in GitHub Desktop.
Save IntegerMan/bada84605288ae765ab5ab1ce57fbcbb to your computer and use it in GitHub Desktop.
try
{
// Do something that might cause an exception
}
catch (IOException ex)
{
// Rethrow the exception without replacing its call stack
throw;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment