Return Code Mix-up

I'm writing an add-in and as all good programmers should do , I am making sure all the possible error conditions are handled gracefully.  According to the API docs, the AddFile method of the IEdmFolder5 object can raise any of the following errors:

Error Code
Value
E_EDM_PERMISSION_DENIED0x80040203
E_EDM_NAME_ALREADY_EXISTS0x8004020F
E_EDM_INVALID_NAME0x8004021D
E_EDM_FILE_NOT_FOUND0x80040213
E_EDM_FILE_SHARE_ERROR         0x8004020B
E_EDM_OPERATION_REFUSED_BY_PLUGIN0x8004021A

I have all of these covered, but while testing I had some odd results.  I passed in a file name of ':' which according to Microsoft is invalid.  The AddFile call raises a E_EDM_FILE_SHARE_ERROR instead of the expected E_EDM_INVALID_NAME error.   I think the documentation may have some of the name to value mappings messed up.  Not good.

Jim S.

SolidworksSolidworks Pdm enterprise Pdm