Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagecpp
themeConfluence
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

...

TypeNameComment
EdmiError 

errCode

An EDMinterface error code.

...

Return Value

...

TypeComment
SdaiString 

The corresponding error text.

Options

...

  

 

Example

...

 

Code Block
languagecpp
 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 (Content by label)
showLabelsfalse
showSpacefalse
cqllabel = "model" and parent = "6062220"