Hi.
A funtion i had to implement is one that returns a assertionerror given a
msg and a throwable (initCause with the throwable) simply because it's such
a common pattern to throw a assertionerror on "impossible" (buggy)
exceptions. Without the cause, it's sometimes hard to guess the problem
without recompiling the code more than once.

I'd like another constructor in AssertionError (that takes a msg and a
throwable).

As i said i did this on a static function, so it's not important to me, but
might simplify things for others (-3 lines of code in catch clauses).

Reply via email to