[CSHARP-218] Throw a more informative exception when attempting to deserialize a struct (which is not supported) Created: 02/May/11 Updated: 02/Apr/15 Resolved: 02/May/11 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | None |
| Affects Version/s: | 1.0 |
| Fix Version/s: | 1.1 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Robert Stam | Assignee: | Robert Stam |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
Deserialization of structs is not supported. In v1.0, when this is attempted a very strange exception is thrown. Instead, a BsonSerializationException with a more informative message should be thrown. |
| Comments |
| Comment by Robert Stam [ 02/May/11 ] |
|
Added new error checking and improved messages when attempting to deserialize a struct. |