class Test { void foo () throws Exception { } void bar () { try { foo(); } catch (Exception e) { e.printStackTrace(); } } }