lucy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tilghman Lesher <>
Subject Re: [lucy-user] About error handling in Lucy C library
Date Wed, 01 Feb 2017 22:12:23 GMT
On Wed, Feb 1, 2017 at 2:53 PM, Serkan Mulayim <> wrote:
> According to the documentation, I see there is an exception/error handling mechanism
built in the C library. For example in,
"If a write lock cannot be secured, new() will throw an exception". Or in the Indexer.c the
code line "THROW(ERR, "No Schema supplied, and can't find one in the index");"
> Is there any documentation on how we can use these exceptions for building safer applications?
Is there a documentation for all "classes"  which throws exceptions with the corresponding
functions? Is there any code examples on how they are used?

The documentation for Exceptions appears to be here:

Note the trap() API call.

> Is there any documentation on the functions which return a status (e.g 0 for success
-1 for lock error etc...) of the method as well?

I believe the library is designed to be embedded in a language which
does exception handling, so it does not appear so.


View raw message