[augeas-devel] RFC: Java Bindings

Bryan Kearney bkearney at redhat.com
Mon Aug 10 13:11:07 UTC 2009


David Lutterkort wrote:
> 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
> 
> 
Take a look at this branch:

http://github.com/bkearney/java-augeas/tree/exceptions

It throws exceptions by default, but you can turn them off if you wish.

-- bk




More information about the augeas-devel mailing list