/
edmiGetErrorText
edmiGetErrorText
SdaiString edmiGetErrorText(EdmiError errCode);
Returns an error message that corresponds to the given EDMinterface error code. The actual returned error message string is located in a buffer in EDMinterface that may be overwritten by the next EDMinterface operation.
Arguments
Type | Name | Comment |
EdmiError | errCode | An EDMinterface error code. |
Return Value
Type | Comment |
SdaiString | The corresponding error text. |
Options
Example
EdmiError rstat; SdaiErrorCode errCode; SdaiSession sessionId; SdaiEntity entityId; . . . sessionId = sdaiOpenSession(); if (errCode = sdaiErrorQuery()) { /* Error in operation */ printf("\nError: %s in sdaiOpenSession\n", edmiGetErrorText(rstat)); goto error; } . . . if (rstat = edmiGetEntityInSchemaBN("PDM_Schema", "Document", &entityId)) { /* Error in operation */ printf("\nError: %s in edmiGetEntityInSchemaBN\n", edmiGetErrorText(rstat)); goto error; } printf("\nentityId: %lu", entityId); . . .
See also
Filter by label
There are no items with the selected labels at this time.
Related content
sdaiErrorQuery
sdaiErrorQuery
More like this
Get Error Message
Get Error Message
More like this
Multilingual error messages in EDM
Multilingual error messages in EDM
More like this
xpxDefineErrorCode
xpxDefineErrorCode
More like this
sdaiGetInstanceModel
sdaiGetInstanceModel
More like this
edmiTypeChecking
edmiTypeChecking
More like this