jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jukka Zitting <jukka.zitt...@gmail.com>
Subject Re: Remove o.a.j.BaseException?
Date Tue, 31 Jan 2006 10:30:26 GMT

On 1/31/06, Felix Meschberger <Felix.Meschberger@day.com> wrote:
> Though the BaseException (or JackrabbitException ??) has no life in
> itself, it might be usefull to have a catch-all jackrabbit-specific
> exception, especially since the exception is checked.

Is there a real use case for this?

Within Jackrabbit the BaseException class is used like this only to
catch the different exceptions in o.a.j.name. A more specific base
class like o.a.j.name.NameException would be much better in those

Outside Jackrabbit this would only be useful to external components
that invoke the Jackrabbit internals and to implementations that
extend or otherwise use the Jackrabbit core. Even these cases would
probably be better served by more specific exception base classes.


Jukka Zitting

Yukatan - http://yukatan.fi/ - info@yukatan.fi
Software craftmanship, JCR consulting, and Java development
View raw message