.NET Fiddle

CSharp · Console

/Program.cs

using System;
 
public class Test
{
	public static void Main()
	{
		try
		{
			try
			{
				Thrower();
			}
			catch (Exception ex)
			{
				Console.WriteLine(ex);
				Console.WriteLine();
				throw;
			}
		}
		catch (Exception ex)
		{
			Console.WriteLine(ex);
			Console.WriteLine();
		}
	}
	
	public static void Thrower()
	{
		throw new Exception();
	}
}
;