Library for document analysis (segmentation, tokenization, normalization, aggregation) with the goal to get a set of items that can be inserted into a strus storage. Also some functions for analysing tokens or phrases of the strus query are provided.
for example: I throw an exception in a segmenter, strusAnalyze happily continues to index the
document. The exception in this case was thrown in the defineSubSection method of the segmenter
as such:
throw strus::runtime_error(_TXT("xxx"));
When I see the definition of 'runtime_error', it seems to me that this is a function in internationatiztion.hpp/cpp!
And the code is mixed up with std::runtime_error and code throwing a strus::runtime_error which
will then never be caught. For instance in programLoader.cpp there is a catch (std::runtime_error).
Defining a function with the same name as a standard exception name is very counter-intuitive!
If I change it to std::runtime_error also nothing gets catched.
for example: I throw an exception in a segmenter, strusAnalyze happily continues to index the document. The exception in this case was thrown in the defineSubSection method of the segmenter as such:
When I see the definition of 'runtime_error', it seems to me that this is a function in internationatiztion.hpp/cpp!
And the code is mixed up with std::runtime_error and code throwing a strus::runtime_error which will then never be caught. For instance in programLoader.cpp there is a catch (std::runtime_error).
Defining a function with the same name as a standard exception name is very counter-intuitive!
If I change it to
std::runtime_error
also nothing gets catched.I'm really puzzled here..