using System;//any method can throw an errorvoid MethodWithException() { throw new Exception("test exception");}