[CWB] CQi error report system
Matthieu Decorde
matthieu.decorde at ens-lyon.fr
Wed Oct 13 16:56:30 CEST 2010
Hi,
We use CQi in our TXM application and we want to retrieve
CQP syntax error reports from the cqpcl server.
I saw that CQi defines some constants about CQP errors in cqi.h :
#define CQI_CQP_ERROR_GENERAL 0x0501
#define CQI_CQP_ERROR_NO_SUCH_CORPUS 0x0502
#define CQI_CQP_ERROR_INVALID_FIELD 0x0503
#define CQI_CQP_ERROR_OUT_OF_RANGE 0x0504
But it seems that the 0x0501 code is the only error
code that CQi is able to return.
For example, requests like je" return 0x0501, but the std
output stream of cqpserver reports a "No such corpus error".
I also tried the CQI_CTRL_LAST_GENERAL_ERROR command,
but it seems that it is not its job to report this kind of error.
When I call it it always reports "No error".
Did I miss something about the CQi errors reporting system ?
By the way, after a "No such corpus error", the next
request fails, is there a way to tell CQi to cancel the previous requests ?
Thanks for your help,
Matthieu Decorde
More information about the CWB
mailing list