Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 72cabbc10b
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (26 sloc) 0.553 kb
using System;
public class TryTest {
public static void ThrowException() {
throw new Exception();
}
public static int Main() {
int state = 0;
try {
ThrowException();
try {
Console.WriteLine("In try block");
} catch (Exception e) {
state = 1;
Console.WriteLine("------------------------");
Console.WriteLine(e);
Console.WriteLine("------------------------");
}
} catch {
state = 2;
}
if (state != 2)
return 1;
Console.WriteLine("OK");
return 0;
}
}
Jump to Line
Something went wrong with that request. Please try again.