try { var x = 100; doSomething(x); } catch { errorHandling(); }