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