using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class Test
{
public static void Main()
try
Sample e = new Sample();
}
catch( SampleException some )
Console.WriteLine("Exception Caught!");
class Sample
int x = 0;
public SomeException()
if(x == 0)
throw new SampleException();