commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Gregory <GGreg...@seagullsoftware.com>
Subject RE: [VFS] Softening the exceptions...
Date Mon, 25 Oct 2010 19:06:59 GMT
> -----Original Message-----
> From: jcarman@carmanconsulting.com [mailto:jcarman@carmanconsulting.com] On
> Behalf Of James Carman
> Sent: Monday, October 25, 2010 08:10
> To: Commons Developers List
> Subject: Re: [VFS] Softening the exceptions...
> 
> On Mon, Oct 25, 2010 at 11:05 AM, Gary Gregory
> <GGregory@seagullsoftware.com> wrote:
> > Do we want the APIs to be quieter than using java.io.File for example? Or,
> should exceptions be thrown from similar places?
> >
> 
> Definitely quieter than java.io.File!  I *hate* that API for its
> checked exceptions.
> 
> > I am worried that we would make all APIs "quiet" (unchecked exceptions) as a
> opposed to really thinking where exceptions should be checked or return an
> Boolean error code (like File mkdir)
> >
> 
> I'm one of those folks who think the checked exceptions are evil, so I
> am fine with getting rid of them entirely (think about how much nicer
> your Hibernate code looks without the checked exceptions).  Boolean
> returns are fine I guess.  No real strong opinion on that one.

So for VFS, you would prefer that all error handling be done with unchecked exceptions? 

Gary

> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message