Skip to content

Instantly share code, notes, and snippets.

@pparadis
Created October 7, 2015 10:36
Embed
What would you like to do?
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