[CSHARP-1042] Deprecate CommandResult in MongoCommandException and add new Code, Command, ErrorMessage and Result properties Created: 19/Aug/14  Updated: 02/Apr/15  Resolved: 28/Oct/14

Status: Closed
Project: C# Driver
Component/s: Error Handling
Affects Version/s: None
Fix Version/s: 1.10

Type: Improvement Priority: Minor - P4
Reporter: Craig Wilson Assignee: Robert Stam
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

MongoCommandException.CommandResult needs to be deprecated.

New properties need to be added:

public int Code { get; }
public BsonDocument Command { get; }
public string ErrorMessage { get; }
public BsonDocument Result { get; }



 Comments   
Comment by Githook User [ 28/Oct/14 ]

Author:

{u'username': u'rstam', u'name': u'rstam', u'email': u'robert@robertstam.org'}

Message: CSHARP-1042: Add Code and ErrorMessage properties to MongoCommandException.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/7a2b7a3117e8aec5f94e8c7204f8a94b569b3573

Comment by Githook User [ 28/Oct/14 ]

Author:

{u'username': u'rstam', u'name': u'rstam', u'email': u'robert@robertstam.org'}

Message: CSHARP-1042: Add Code, Command and ErrorMessage properties to MongoCommandException.
Branch: v1.x
https://github.com/mongodb/mongo-csharp-driver/commit/cd75c0b0e5bfc960a22c2575e6471d53a332f989

Comment by Githook User [ 28/Oct/14 ]

Author:

{u'username': u'rstam', u'name': u'rstam', u'email': u'robert@robertstam.org'}

Message: CSHARP-1042: Deprecate CommandResult in MongoCommandException.
Branch: v1.x
https://github.com/mongodb/mongo-csharp-driver/commit/7298f575387c23743065c697637c5b858a4eabdc

Generated at Wed Feb 07 21:38:30 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.