Details
-
Improvement
-
Resolution: Unresolved
-
Major - P3
-
None
-
None
-
None
-
None
Description
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
|
}
|