Closed kelson42 closed 5 months ago
@mgautierfr Another idea evocated is to transform in addition the Xapian exception in a standard exception which would allow to easily deal with it. How do you think we should proceed?
We should at least catch Xapian::DatabaseCorruptError
and rethrow a zim::ZimFileFormatError
instead as a corrupted database is kind of corrupted zim file.
We should document coherently which exception might be generated by the libzim. Also if the exceptions don't come from the libzim itself, see https://github.com/kiwix/kiwix-apple/issues/622