Skip to content

Instantly share code, notes, and snippets.

@pparadis
Created October 7, 2015 10:36
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 pparadis/92fcf2ba451858e03568 to your computer and use it in GitHub Desktop.
Save pparadis/92fcf2ba451858e03568 to your computer and use it in GitHub Desktop.
class Program
{
static void Main(string[] args)
{
var error = new System.Exception("1", new System.Exception("2", new System.Exception("3")));
for (var exception = error; exception != null; exception = exception.InnerException)
{
Console.Out.WriteLine("exeption " + exception.Message);
}
Console.ReadLine();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment