void () { try { System.out.println("foo"); } catch (Error e) { e.printStackTrace(); } try { System.out.println("foo"); } catch (Error e) { e.printStackTrace(); throw e; } try { System.out.println("foo"); } catch (AssertionError e) { e.printStackTrace(); throw e; } try { System.out.println("foo"); } catch (AssertionError e) { e.printStackTrace(); } }