directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Lécharny <elecha...@gmail.com>
Subject Re: Cursor to implement Closeable
Date Sat, 30 Jan 2016 11:00:26 GMT
Le 30/01/16 10:36, Zheng, Kai a écrit :
> The proposed change makes sense to me. Then in new Java style, codes can be like: try
(Cursor c = Cursor.open(xxx)) {}.
>
> But I don't know what close(Exception) method is for. Looks to me, close() throws IOException
is enough.

This is just a method that close the cursor, but you can 'propagate' an
error to it. This is helpful when you have to close a cursor because you
have detected an error while processing it.



Mime
View raw message