||The .initCause, if called here, throws the IllegalStateException. I am not sure why, the UnexpectedException was constructed with the single parameter constructor. After I found this I started to use ".detail =". Do you think there is a bug somwhere around UnexpectedException?

Tom Tromey wrote:

"Audrius" == Audrius Meskauskas <[EMAIL PROTECTED]> writes:

Audrius>          UnexpectedException uex = new 
UnexpectedException(exception_message);
Audrius> -        uex.initCause(e);
Audrius> +        uex.detail = e;

Using the 2 argument constructor would be slightly cleaner IMO.

Tom



Reply via email to