Return-Path: Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: (qmail 24337 invoked from network); 26 Feb 2008 13:24:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Feb 2008 13:24:49 -0000 Received: (qmail 33780 invoked by uid 500); 26 Feb 2008 13:24:44 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 33770 invoked by uid 500); 26 Feb 2008 13:24:44 -0000 Mailing-List: contact user-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cayenne.apache.org Delivered-To: mailing list user@cayenne.apache.org Received: (qmail 33761 invoked by uid 99); 26 Feb 2008 13:24:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Feb 2008 05:24:44 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [17.148.16.76] (HELO smtpoutm.mac.com) (17.148.16.76) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Feb 2008 13:24:10 +0000 Received: from mac.com (asmtp003-s [10.150.69.66]) by smtpoutm.mac.com (Xserve/smtpout013/MantshX 4.0) with ESMTP id m1QDOKuq020537 for ; Tue, 26 Feb 2008 05:24:20 -0800 (PST) Received: from [192.168.1.44] (222-112.5-85.cust.bluewin.ch [85.5.112.222]) (authenticated bits=0) by mac.com (Xserve/asmtp003/MantshX 4.0) with ESMTP id m1QDNlYw022893 for ; Tue, 26 Feb 2008 05:24:18 -0800 (PST) Message-Id: From: "Alexander Lamb (dev)" To: user@cayenne.apache.org In-Reply-To: <7FA91EE0-BB63-4809-A6F5-ADFD7D1827D0@objectstyle.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v919.2) Subject: Re: Raising an exception in a callback Date: Tue, 26 Feb 2008 14:23:46 +0100 References: <07742AD6-5DE0-4699-AFAF-49B7CB18EDF1@mac.com> <1FF3036C-B8DD-46C7-ABA2-1FADBF3A9F4A@objectstyle.org> <468E1E29-D26C-4BB9-B362-AFDC7297CB66@mac.com> <7FA91EE0-BB63-4809-A6F5-ADFD7D1827D0@objectstyle.org> X-Mailer: Apple Mail (2.919.2) X-Virus-Checked: Checked by ClamAV on apache.org Works fine, thanks! (my lack of Java knowledge....) Le 26 f=E9vr. 08 =E0 14:08, Andrus Adamchik a =E9crit : > > 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 =20 > exception all the way to the root cause: > > Throwable th =3D e; > while(th.getCause() !=3D null) { > th =3D th.getCause(); > } > > > Andrus