commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Carman <ja...@carmanconsulting.com>
Subject Re: [VFS] Softening the exceptions...
Date Mon, 25 Oct 2010 18:03:43 GMT
On Mon, Oct 25, 2010 at 2:00 PM, Filip Defoort
<filipdef@cirquedigital.com> wrote:
> Well, it's my job to write proper code. Other people can do all they
> want, but with just a runtime exception I wouldn't be able to do what
> I'd need to do.
>

Again, I think you're misunderstanding my suggestion.  I'm suggesting
to do this:

public class FileSystemException extends RuntimeException

as opposed to

public class FileSystemException extends IOException

This makes all VFS's exceptions unchecked.  They can be caught if you
want or they can be propagated up the call stack without having to
wrap them up and do it yourself.

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


Mime
View raw message