jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Müller <thomas.muel...@day.com>
Subject Re: svn commit: r745051 - in /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/value: BLOBInResource.java BLOBValue.java
Date Tue, 17 Feb 2009 13:55:19 GMT
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 <jukka.zitting@gmail.com>wrote:

> Hi,
>
> On Tue, Feb 17, 2009 at 2:35 PM,  <thomasm@apache.org> 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
>

Mime
View raw message