void () { try { try { } finally { doit(); } } catch (Excep1 e) { String error = "RollbackException"; } catch (Excep2 e) { String error = "HeuristicRollbackException"; } catch (Excep3 e) { String error = "SystemException"; } catch (IllegalStateException e) { String error = "IllegalStateException"; } catch (RuntimeException e) { String error = "RuntimeException"; } }