[CSHARP-3037] Correct types in ArgumentException message Created: 01/Apr/20 Updated: 28/Oct/23 Resolved: 08/Apr/20 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | Builders |
| Affects Version/s: | None |
| Fix Version/s: | 2.11.0 |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Vincent Kam (Inactive) | Assignee: | Vincent Kam (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Minor Change |
| Description |
|
Contributor description: Fixing expectation message whereby the wrong type is contained within the exception making it confusing to the end-user. Take for example the following test:
This throws the following exception
instead of
Contributor PR: |
| Comments |
| Comment by Githook User [ 09/Apr/20 ] |
|
Author: {'name': 'vincentkam', 'email': 'vincent.kam@10gen.com', 'username': 'vincentkam'}Message: |
| Comment by Githook User [ 08/Apr/20 ] |
|
Author: {'name': 'kevbite', 'email': 'kev_bite@msn.com', 'username': 'kevbite'}Message: |