Salience 6 Error Codes and Warnings

Errors

Calls to methods in the Salience 6 API can return the following error codes:

-1 LXA_ERROR "General error."
0 LXA_OK "Success."
1 LXA_NODOCUMENT
2 LXA_INVALID_LICENSE "The supplied license is invalid for this component."
3 LXA_ERROR_PREPROCESSING "Text preprocessing failed."
4 LXA_INVALID_PARAM "Invalid API Parameter."
5 LXA_INVALID_PATH "The supplied path is invalid."
6 LXA_OK_WITH_WARNINGS
7 LXA_INVALID_SESSION "Invalid Session"
8 LXA_INVALID_FILEFORMAT
9 LXA_TIMEOUT "The requested operation has timed out"
10 LXA_API_ABUSE
11 LXA_API_DEPRECATED
12 LXA_INVALID_OPTION
13 LXA_SESSIONS_EXCEEDED
14 LXA_CONFIG_ID_IN_USE
15 LXA_INVALID_CONFIG

Warnings

The following warning codes are relevant to LXA_OK_WITH_WARNINGS.

0 LXA_WARNING_NONE
1 LXA_WARNING_LARGE_DOCUMENT
2 LXA_WARNING_NON_UTF8
4 LXA_WARNING_NO_WHITESPACE
8 LXA_WARNING_NO_PUNCTUATION
16 LXA_WARNING_NO_CRF_ENTITIES
32 LXA_WARNING_SENTENCES_WITHOUT_PARSES

Note: Warning codes are returned as a bitmask, thus a return of 12 would indicate LXA_WARNING_NO_WHITESPACE AND LXA_WARNING_NO_PUNCTUATION