Object () { try{ Runnable runnable = () -> { throw new RuntimeException(); }; Runnable runnableLambda = ()-> { throw new RuntimeException(); }; } catch (RuntimeException e){ throw new RuntimeException(e); } return null; }