[augeas-devel] RFC: Java Bindings

David Lutterkort lutter at redhat.com
Sat Aug 8 00:37:15 UTC 2009


On Fri, 2009-08-07 at 14:07 -0400, Bryan Kearney wrote:
> David Lutterkort wrote:
> > On Wed, 2009-08-05 at 21:57 -0400, Bryan Kearney wrote:
> >> One question.. I am not throwing exceptions. Rather, you can interrogate 
> >>    the lastResult() to throw an exception if you like. Does that seem 
> >> like a fair approach?
> > 
> > Personally, I like exceptions. A lot. I would just throw them by
> > default, i.e. translate all those return codes of -1 in hte C API to
> > exceptions.
> > 
> > David
> > 
> > 
> Do you want them checked or unchecked? I could see a model of making 
> them unckecked, and turning them on or off per user input.

It's been a long time since I thought about checked/unchecked exceptions
in Java, but I think unchecked is the right kind.

David





More information about the augeas-devel mailing list