The length of error message

int sol_GetErrorLen( HGREN hEngine )

int sol_GetErrorLen8( HGREN hEngine )

Parameters:

hEngine - grammatical dictionary instance handle.

Return value:

Length of the error string, including the terminating '\0'.

Remarks

Function sol_GetErrorLen8 returns the length of the utf-8 error string.

Use API function sol_GetError and sol_GetError8 to get the error text.

The error handling functions are not thread-safe. Another error can occur and change the error indicator between sol_GetErrorLen and sol_GetError calls.

C++ sample code:

#include "solarix_grammar_engine.h"

int l = sol_GetErrorLen8(hEngine);
char *err = new char[ l+1 ];
sol_GetError8( hEngine, err, l );

// ...

Navigation

Purchase the Grammatical Dictionary SDK

Russian version of this page

error_api.cpp

Back to API functions list

  © Козиев Илья 2019
last change 04-Apr-11