From dev-return-21973-apmail-jackrabbit-dev-archive=jackrabbit.apache.org@jackrabbit.apache.org Tue Feb 17 13:55:53 2009 Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 73151 invoked from network); 17 Feb 2009 13:55:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Feb 2009 13:55:52 -0000 Received: (qmail 34729 invoked by uid 500); 17 Feb 2009 13:55:51 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 34540 invoked by uid 500); 17 Feb 2009 13:55:50 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 34531 invoked by uid 99); 17 Feb 2009 13:55:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Feb 2009 05:55:50 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of tmueller@day.com designates 207.126.148.183 as permitted sender) Received: from [207.126.148.183] (HELO eu3sys201aog003.obsmtp.com) (207.126.148.183) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 17 Feb 2009 13:55:41 +0000 Received: from source ([209.85.218.174]) by eu3sys201aob003.postini.com ([207.126.154.11]) with SMTP ID DSNKSZrByGYyrEnGVOAK/N87PhcIxgTei9zN@postini.com; Tue, 17 Feb 2009 13:55:21 UTC Received: by bwz22 with SMTP id 22so3822380bwz.21 for ; Tue, 17 Feb 2009 05:55:20 -0800 (PST) MIME-Version: 1.0 Received: by 10.181.134.12 with SMTP id l12mr274157bkn.80.1234878919722; Tue, 17 Feb 2009 05:55:19 -0800 (PST) In-Reply-To: <510143ac0902170546u42042fffmd13f3b662a6bb86a@mail.gmail.com> References: <20090217133533.4BB8C2388B5E@eris.apache.org> <510143ac0902170546u42042fffmd13f3b662a6bb86a@mail.gmail.com> Date: Tue, 17 Feb 2009 14:55:19 +0100 Message-ID: <91f3b2650902170555uc12a9b3yb9cd494b13ff98@mail.gmail.com> Subject: Re: svn commit: r745051 - in /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/value: BLOBInResource.java BLOBValue.java From: =?ISO-8859-1?Q?Thomas_M=FCller?= To: dev@jackrabbit.apache.org Content-Type: multipart/alternative; boundary=0016363b992259c5f204631da7c8 X-Virus-Checked: Checked by ClamAV on apache.org --0016363b992259c5f204631da7c8 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi Jukka, Hm... Sorry, I should have waited with committing the changes... I didn't knew about this class. I will use it in the future (but leave the code right now). Regards, Thomas On Tue, Feb 17, 2009 at 2:46 PM, Jukka Zitting wrote: > Hi, > > On Tue, Feb 17, 2009 at 2:35 PM, wrote: > > - throw new IOException(fsResource.getPath() > > + IOException e2 = new IOException(fsResource.getPath() > > + ": Error while creating value: " + fse.toString()); > > + e2.initCause(fse); > > + throw e2; > > There's a nice utility class in Commons IO 1.4 for this purpose. See > IOExceptionWithCause [1]. > > [1] > http://commons.apache.org/io/api-release/org/apache/commons/io/IOExceptionWithCause.html > > BR, > > Jukka Zitting > --0016363b992259c5f204631da7c8 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Jukka,

Hm... Sorry, I should have waited with committing the chan= ges... I didn't knew about this class. I will use it in the future (but= leave the code right now).

Regards,
Thomas


On Tue, Feb 17, 2009 at 2:46 PM, Jukka Zitting <jukka.zitting@gmail.com>= wrote:
Hi,

On Tue, Feb 17, 2009 at 2:35 PM,  <thomasm@apache.org> wrote:
> -            throw new IOException(fsRes= ource.getPath()
> +            IOException e2 =3D new IOEx= ception(fsResource.getPath()
>                     = + ": Error while creating value: " + fse.toString());
> +            e2.initCause(fse);
> +            throw e2;

There's a nice utility class in Commons IO 1.4 for this purpose. See IOExceptionWithCause [1].

[1] http://commons.apache.org/i= o/api-release/org/apache/commons/io/IOExceptionWithCause.html

BR,

Jukka Zitting

--0016363b992259c5f204631da7c8--