...
The message includes the feature name, internal error code, and context-specific error whenever relevant. Typically, the context-specific error and internal error code are used only by X-Formation for support purposes.
Example:
LM-X Error: (Internal: 33 Feature: f1)
Feature not found
For further information go to http://www.x-formation.com
...
Code Block | ||
---|---|---|
| ||
#include <lmx.h> #include <stdio.h> LMX_HANDLE h; int main() { LMX_FEATURE_INFO FI; exit_on_error(LMX_Init(&h)); if (LMX_GetFeatureInfo(h,"nonExistingFeature", &FI) != LMX_SUCCESS) { if (h != NULL) { fprintf(stderr, "%s\n", LMX_GetErrorMessage(h)); LMX_Free(h); } else { fprintf(stderr, "%s\n", LMX_GetErrorMessageSimple(s)); fflush(stderr); exit(1); } return} return 0; } |