michalsimon
3/29/2016 - 9:57 AM

Re-throw exception

Re-throw exception

public class Program
{
	public static void Main()
	{
		try
		{
		// Do something dangerous.
		//...
		}
		catch (Exception)
		{
			// Log the error.
			//...
			// Re-throw the exception.
			throw;
		}
	}
}