Search code examples
c#.netexceptionerror-code

Why different error codes for same Exception?


I am doing one synchronization example. I got two exceptions which are having same details about exception. But with the error codes.

And both exceptions have the same Inner Exceptions

What is means? What Error Codes will tell us more than exceptions? How to get the details about my error code. Thanks in Advance

Microsoft.Synchronization.SyncException: A storage engine operation failed with error code 25051 (HRESULT = 0x80004005, Source IID = {0FB15084-AF41-11CE-BD2B-204C4F4F5020}, Parameters=(0, 0, 0, , , , )).

Microsoft.Synchronization.SyncException: A storage engine operation failed with error code 25009 (HRESULT = 0x80004005, Source IID = {0FB15084-AF41-11CE-BD2B-204C4F4F5020}, Parameters=(0, 0, 0, , , , )).

Solution

  • Finally got cleaned after reading the documentation