Skip to content

Instantly share code, notes, and snippets.

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
You can’t perform that action at this time.