Re: Adding a constructor to AssertionError that takes throwable

2010-01-10 Thread Paulo Levi
For some reason i didn't receive your message in my mail Mr. Remi, but i hope you see this anyway. I explained it badly. I want a constructor like this: *AssertionError*(String detailMessage, Throwable thrown)

Re: Adding a constructor to AssertionError that takes throwable

2010-01-10 Thread Rémi Forax
Le 10/01/2010 09:33, Paulo Levi a écrit : 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,

Adding a constructor to AssertionError that takes throwable

2010-01-10 Thread Paulo Levi
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 withou