cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Lamb (dev)" <al...@mac.com>
Subject Re: Raising an exception in a callback
Date Tue, 26 Feb 2008 13:23:46 GMT
Works fine, thanks! (my lack of Java knowledge....)


Le 26 févr. 08 à 14:08, Andrus Adamchik a écrit :

>
> On Feb 26, 2008, at 3:04 PM, Alexander Lamb (dev) wrote:
>
>>
>> e.getCause() will give me an InvocationTargetException.
>
> Sorry, I should've been more explicit. You need to unwrap the  
> exception all the way to the root cause:
>
> Throwable th = e;
> while(th.getCause() != null) {
>   th = th.getCause();
> }
>
>
> Andrus


Mime
View raw message