|
There are other fields besides "err" and "code" that have useful information, and more are being added. Clients that log exceptions thrown due to GLE errors should contain all of it.
The easiest solution for this ticket, for drivers that support exceptions, is to add the error document from the server as an attribute of the exception.
Furthermore, a WTimeoutError exception is useful for differentiating errors due to wtimeout expiring from operation failures. Newer versions of MongoDB return the fields 'n', 'updatedExisting', and 'writtenTo' in this case.
|