On Jul 18, 2014, at 1:15 PM, Remi Forax <fo...@univ-mlv.fr> wrote: > I like the way the proposed API is composable but i fear that people will > still forget to first call throwIfUnchecked() most of the time. > > I think we should not implement a throwSuppressedIf because a suppressed > exception is not a primary one thus it's a more an information when debugging > than an exception a code should act upon. > > I'm not sure that looking recursively for a cause ( :) ) is a good idea, > changing the behavior of a program because an exception buried under 10 > others doesn't seem appealing to me. > Also there is a bug hidden in your implementation of throwCauseIf, you return > the value of cause.throwCauseIf instead of this.
I agree with all these points; I updated the bug.