class Foo{ void foo() { try { //whatever } catch(Exception ex) { } } }