using System;
using static System.Console;
public class Program {
public static void Main(string[] args) {
try {
ThrowException1(); // line 19
} catch (Exception x) {
WriteLine("Exception 1:");
WriteLine(x.StackTrace);
}
ThrowException2(); // line 25
WriteLine("Exception 2:");
private static void ThrowException1() {
DivByZero(); // line 34
} catch {
throw; // line 36
private static void ThrowException2() {
DivByZero(); // line 41
} catch (Exception ex) {
throw ex; // line 43
private static void DivByZero() {
int x = 0;
int y = 1 / x; // line 49