-
Type:
Improvement
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: BSON, Error Handling
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
When a type mismatch error occurs during decoding a struct or slice, the driver should return a typed error such that I can check specifically for that and do something with it different than other types of decode errors.
Something like
type TypeMismatchError struct { Got bsontype.Type Expected bsontype.Type }